From 7281302281bf586ae3e73a557ba1c26de3602d4b Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 19 Jul 2020 14:35:40 +0200 Subject: [PATCH] The defaults for find_system_environments and get_system_environment were wrong This happened, because of the migration to Python 3 only. --- jedi/api/environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/api/environment.py b/jedi/api/environment.py index 1747db7b..cd353617 100644 --- a/jedi/api/environment.py +++ b/jedi/api/environment.py @@ -311,7 +311,7 @@ def find_virtualenvs(paths=None, *, safe=True, use_environment_vars=True): pass -def find_system_environments(*, env_vars={}): +def find_system_environments(*, env_vars=None): """ Ignores virtualenvs and returns the Python versions that were installed on your system. This might return nothing, if you're running Python e.g. from @@ -330,7 +330,7 @@ def find_system_environments(*, env_vars={}): # TODO: this function should probably return a list of environments since # multiple Python installations can be found on a system for the same version. -def get_system_environment(version, *, env_vars={}): +def get_system_environment(version, *, env_vars=None): """ Return the first Python environment found for a string of the form 'X.Y' where X and Y are the major and minor versions of Python.