diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-02-11 11:10:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-02-11 11:10:36 (GMT) |
commit | 885bdc4946890f4bb80557fab80c3874b2cc4d39 (patch) | |
tree | be6280757afecfd1b41c886f651d6cafae384df1 /Lib/importlib | |
parent | a9725f86a984f74e74f09c4808fc8f4b403728b2 (diff) | |
download | cpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.zip cpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.tar.gz cpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.tar.bz2 |
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 71098f1..ddb2456 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -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, '') |