mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
This commit is contained in:
parent
a9725f86a9
commit
885bdc4946
24 changed files with 56 additions and 52 deletions
|
@ -593,7 +593,7 @@ class WindowsRegistryFinder:
|
|||
else:
|
||||
registry_key = cls.REGISTRY_KEY
|
||||
key = registry_key.format(fullname=fullname,
|
||||
sys_version=sys.version[:3])
|
||||
sys_version='%d.%d' % sys.version_info[:2])
|
||||
try:
|
||||
with cls._open_registry(key) as hkey:
|
||||
filepath = _winreg.QueryValue(hkey, '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue