From 5871cd9f266914d0f77aa764f50daccacc8cb5cc Mon Sep 17 00:00:00 2001 From: deeenes Date: Sat, 20 Apr 2024 02:40:11 +0200 Subject: [PATCH] `status-report`: fixed getting Python version from `sys` --- scripts/status-report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/status-report.py b/scripts/status-report.py index 3d156a88f..5639ab1de 100755 --- a/scripts/status-report.py +++ b/scripts/status-report.py @@ -812,7 +812,7 @@ def python_version(self) -> str: return re.match( r'^\d+\.\d+', - self._python_version or '.'.join(sys.version[:2]), + self._python_version or '%d.%d' % sys.version_info[:2]), ).group()