mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Refactor a confusing int to str conversion
This commit is contained in:
parent
bbf8466088
commit
45132fa7c9
|
@ -32,7 +32,7 @@ class VirtualEnvironment:
|
|||
self.site = Path(lib) / 'site-packages'
|
||||
# Workaround for https://github.com/pypa/virtualenv/issues/306
|
||||
if hasattr(sys, "pypy_version_info"):
|
||||
version_dir = '{0}'.format(*sys.version_info)
|
||||
version_dir = str(sys.version_info.major)
|
||||
self.lib = Path(home, 'lib-python', version_dir)
|
||||
else:
|
||||
self.lib = Path(lib)
|
||||
|
|
Loading…
Reference in a new issue