Commit f0177282 authored by Georg Brandl's avatar Georg Brandl

Make patchlevel print out the release if called as a script.

parent 7f7e30ae
......@@ -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]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment