Skip to content
Snippets Groups Projects
Commit 0648189d authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

switching to /usr/bin/python2

parent 4b668dbb
No related branches found
No related tags found
No related merge requests found
......@@ -151,9 +151,7 @@ class Interpreter:
return self.name
version = version or self.version or ''
if consider_default_ver and (not version or version == self.default_version):
version = '3' if self.impl == 'cpython3' else ''
elif isinstance(version, Version) and version == Version(major=2):
version = '' # do not promote /usr/bin/python2
version = '3' if self.impl == 'cpython3' else '2'
if self.debug:
return 'python{}-dbg'.format(version)
return self.name + str(version)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment