Closes #22537: Make sphinx extensions compatible with Python 2 or 3, like in the 3.x branches
diff --git a/Doc/tools/patchlevel.py b/Doc/tools/patchlevel.py
index 082858e..b070d60 100644
--- a/Doc/tools/patchlevel.py
+++ b/Doc/tools/patchlevel.py
@@ -68,4 +68,4 @@
         return version, release
 
 if __name__ == '__main__':
-    print get_header_version_info('.')[1]
+    print(get_header_version_info('.')[1])