Skip to content

Commit 0c4e152

Browse files
author
georg.brandl
committed
Make patchlevel print out the release if called as a script.
git-svn-id: http://svn.python.org/projects/python/trunk@61167 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent fa8a34a commit 0c4e152

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/tools/sphinxext/patchlevel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,6 @@ def get_version_info():
6666
print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \
6767
'using version of this interpreter (%s).' % release
6868
return version, release
69+
70+
if __name__ == '__main__':
71+
print get_header_version_info('.')[1]

0 commit comments

Comments
 (0)