Skip to content

Commit 4d3175f

Browse files
committed
Return 3 values for version tuple
As we've added an extra patch level we need to handle this in the tuple. Originally authored by i-shenl <[email protected]>
1 parent b9f909d commit 4d3175f

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
@@ -1282,7 +1282,7 @@ def python_version_tuple():
12821282
will always include the patchlevel (it defaults to 0).
12831283
12841284
"""
1285-
return tuple(_sys_version()[1].split('.'))
1285+
return tuple(_sys_version()[1].split('.', 2))
12861286

12871287
def python_branch():
12881288

0 commit comments

Comments
 (0)