Mercurial > cpython-lru_cache-weakref
diff Doc/tools/sphinxext/patchlevel.py @ 46979:c26c02a42008
revert syntax change
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Tue, 13 May 2008 12:56:25 +0000 |
| parents | 55d8c35322a7 |
| children | 5cb4e51a4408 |
line wrap: on
line diff
--- a/Doc/tools/sphinxext/patchlevel.py Tue May 13 04:55:24 2008 +0000 +++ b/Doc/tools/sphinxext/patchlevel.py Tue May 13 12:56:25 2008 +0000 @@ -63,10 +63,9 @@ 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]
