mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +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
|
@ -40,7 +40,7 @@ def setup_module(machinery, name, path=None):
|
|||
else:
|
||||
root = machinery.WindowsRegistryFinder.REGISTRY_KEY
|
||||
key = root.format(fullname=name,
|
||||
sys_version=sys.version[:3])
|
||||
sys_version='%d.%d' % sys.version_info[:2])
|
||||
try:
|
||||
with temp_module(name, "a = 1") as location:
|
||||
subkey = CreateKey(HKEY_CURRENT_USER, key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue