Skip to content

Commit 4788c64

Browse files
i-shenlMatthewZMD
authored andcommitted
Allow version tuple to return 3 values
Signed-off-by: Mingde (Matthew) Zeng <[email protected]>
1 parent 0522e7e commit 4788c64

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
@@ -1511,7 +1511,7 @@ def python_version_tuple():
15111511
will always include the patchlevel (it defaults to 0).
15121512
15131513
"""
1514-
return tuple(string.split(_sys_version()[1], '.'))
1514+
return tuple(string.split(_sys_version()[1], '.', 2))
15151515

15161516
def python_branch():
15171517

0 commit comments

Comments
 (0)