diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-13 04:55:24 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-05-13 04:55:24 (GMT) |
commit | 752abd0d3cc66f84f551650b8424248b202a16a4 (patch) | |
tree | f5302f8a246115f3f61a1414a94c8d2ce12a3a01 /Doc/tools | |
parent | 8321f978918e3ae4de18672770c6504dcae82343 (diff) | |
download | cpython-752abd0d3cc66f84f551650b8424248b202a16a4.zip cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.gz cpython-752abd0d3cc66f84f551650b8424248b202a16a4.tar.bz2 |
Convert a lot of print statements to print functions in docstrings,
documentation, and unused/rarely used functions.
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/sphinxext/patchlevel.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/tools/sphinxext/patchlevel.py b/Doc/tools/sphinxext/patchlevel.py index cb9e35c..821e3be 100644 --- a/Doc/tools/sphinxext/patchlevel.py +++ b/Doc/tools/sphinxext/patchlevel.py @@ -63,9 +63,10 @@ def get_version_info(): return get_header_version_info('.') except (IOError, OSError): version, release = get_sys_version_info() - print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \ - 'using version of this interpreter (%s).' % release + print('Can\'t get version info from Include/patchlevel.h, ' + 'using version of this interpreter (%s).' % release, + file=sys.stderr) return version, release if __name__ == '__main__': - print get_header_version_info('.')[1] + print(get_header_version_info('.')[1]) |