Skip to content

Commit

Permalink
fix tuple so it returns exactly 3 values
Browse files Browse the repository at this point in the history
We have added a 4th and that screws up python behaviour during runtime.
  • Loading branch information
i-shenl committed Jan 7, 2025
1 parent 7aff504 commit 4da3c7d
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 @@ -1106,7 +1106,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 4da3c7d

Please sign in to comment.