diff options
author | Georg Brandl <georg@python.org> | 2008-03-02 06:44:08 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-02 06:44:08 (GMT) |
commit | f0177282199d4b19108210a357f726a26c05afe1 (patch) | |
tree | 26ee3c6b3b70d3048c1c8d8f5085ebcf51d9836c | |
parent | 7f7e30ae2e309114633207df5eb149038ac57a14 (diff) | |
download | cpython-f0177282199d4b19108210a357f726a26c05afe1.zip cpython-f0177282199d4b19108210a357f726a26c05afe1.tar.gz cpython-f0177282199d4b19108210a357f726a26c05afe1.tar.bz2 |
Make patchlevel print out the release if called as a script.
-rw-r--r-- | Doc/tools/sphinxext/patchlevel.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tools/sphinxext/patchlevel.py b/Doc/tools/sphinxext/patchlevel.py index 971ea61..cb9e35c 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] |