summaryrefslogtreecommitdiff
path: root/Doc/tools/sphinxext/patchlevel.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tools/sphinxext/patchlevel.py')
-rw-r--r--Doc/tools/sphinxext/patchlevel.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tools/sphinxext/patchlevel.py b/Doc/tools/sphinxext/patchlevel.py
index 971ea6197f..cb9e35c226 100644
--- a/Doc/tools/sphinxext/patchlevel.py
+++ b/Doc/tools/sphinxext/patchlevel.py
@@ -66,3 +66,6 @@ def get_version_info():
print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \
'using version of this interpreter (%s).' % release
return version, release
+
+if __name__ == '__main__':
+ print get_header_version_info('.')[1]