1
0
forked from VimPlug/jedi

The defaults for find_system_environments and get_system_environment were wrong

This happened, because of the migration to Python 3 only.
This commit is contained in:
Dave Halter
2020-07-19 14:35:40 +02:00
parent 27603f9780
commit 7281302281

View File

@@ -311,7 +311,7 @@ def find_virtualenvs(paths=None, *, safe=True, use_environment_vars=True):
pass 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 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 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 # TODO: this function should probably return a list of environments since
# multiple Python installations can be found on a system for the same version. # 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' 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. where X and Y are the major and minor versions of Python.