From: Benjamin Peterson Date: Tue, 13 May 2008 12:56:25 +0000 (+0000) Subject: revert syntax change X-Git-Tag: v3.0b1~351 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62ed91de310311a551aece01f6ff9644f1910703;p=python revert syntax change --- diff --git a/Doc/tools/sphinxext/patchlevel.py b/Doc/tools/sphinxext/patchlevel.py index 821e3be307..cb9e35c226 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]