Skip to content

Commit 4da3c7d

Browse files
committed
fix tuple so it returns exactly 3 values
We have added a 4th and that screws up python behaviour during runtime.
1 parent 7aff504 commit 4da3c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ def python_version_tuple():
11061106
will always include the patchlevel (it defaults to 0).
11071107
11081108
"""
1109-
return tuple(_sys_version()[1].split('.'))
1109+
return tuple(_sys_version()[1].split('.',2))
11101110

11111111
def python_branch():
11121112

0 commit comments

Comments
 (0)