diff options
author | Nguyễn Hồng Quân <ng.hong.quan@gmail.com> | 2019-10-17 16:55:48 +0700 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-10-17 18:55:48 +0900 |
commit | 27fad02837c83b596e8c75a7da20373ec99a5048 (patch) | |
tree | 9ad05d2d271de22a3f33b54cc1e40eba7a090a9a /src | |
parent | e2e72776307b19cbf771ce37e22aa4134d58a5ad (diff) |
fix: Separate Python version string and env name (#548)
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/python.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/python.rs b/src/modules/python.rs index b871ef808..68d63673d 100644 --- a/src/modules/python.rs +++ b/src/modules/python.rs @@ -58,7 +58,7 @@ fn python_module(mut module: Module, pyenv_version_name: bool, python_version: S let formatted_version = format_python_version(&python_version); module.new_segment("version", &formatted_version); get_python_virtual_env() - .map(|virtual_env| module.new_segment("virtualenv", &format!("({})", virtual_env))); + .map(|virtual_env| module.new_segment("virtualenv", &format!(" ({})", virtual_env))); }; module |