summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-13 12:56:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-13 12:56:25 (GMT)
commit62ed91de310311a551aece01f6ff9644f1910703 (patch)
tree979c6dbfd857a3d439b1d64be1b789df83addd19 /Doc/tools
parent752abd0d3cc66f84f551650b8424248b202a16a4 (diff)
downloadcpython-62ed91de310311a551aece01f6ff9644f1910703.zip
cpython-62ed91de310311a551aece01f6ff9644f1910703.tar.gz
cpython-62ed91de310311a551aece01f6ff9644f1910703.tar.bz2
revert syntax change
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/sphinxext/patchlevel.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/tools/sphinxext/patchlevel.py b/Doc/tools/sphinxext/patchlevel.py
index 821e3be..cb9e35c 100644
--- a/Doc/tools/sphinxext/patchlevel.py
+++ b/Doc/tools/sphinxext/patchlevel.py
@@ -63,10 +63,9 @@ def get_version_info():
return get_header_version_info('.')
except (IOError, OSError):
version, release = get_sys_version_info()
- print('Can\'t get version info from Include/patchlevel.h, '
- 'using version of this interpreter (%s).' % release,
- file=sys.stderr)
+ 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])
+ print get_header_version_info('.')[1]