Skip to content

Commit

Permalink
Allow version tuple to return 3 values
Browse files Browse the repository at this point in the history
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@posteo.net>
  • Loading branch information
i-shenl authored and MatthewZMD committed Feb 8, 2024
1 parent 0522e7e commit 4788c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/platform.py
Expand Up @@ -1511,7 +1511,7 @@ def python_version_tuple():
will always include the patchlevel (it defaults to 0).
"""
return tuple(string.split(_sys_version()[1], '.'))
return tuple(string.split(_sys_version()[1], '.', 2))

def python_branch():

Expand Down

0 comments on commit 4788c64

Please sign in to comment.