Skip to content

Commit

Permalink
Return 3 values for version tuple
Browse files Browse the repository at this point in the history
As we've added an extra patch level we need to handle this in the
tuple.  Originally authored by i-shenl <[email protected]>
  • Loading branch information
icanhasmath committed Jul 19, 2024
1 parent b9f909d commit 4d3175f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ def python_version_tuple():
will always include the patchlevel (it defaults to 0).
"""
return tuple(_sys_version()[1].split('.'))
return tuple(_sys_version()[1].split('.', 2))

def python_branch():

Expand Down

0 comments on commit 4d3175f

Please sign in to comment.