From 4d3175f641878b603a6a656935e7c4d20d5830d9 Mon Sep 17 00:00:00 2001 From: icanhasmath Date: Fri, 19 Jul 2024 14:16:24 -0500 Subject: [PATCH] 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 --- Lib/platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/platform.py b/Lib/platform.py index 7af46ffd17728a..7bf5a6b381ce77 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -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():