changeset: 106330:ecdc864884a9 branch: 3.5 user: Martin Panter date: Sun Jan 29 10:05:02 2017 +0000 files: Doc/tools/extensions/patchlevel.py Misc/NEWS description: Issue #29349: Fix Python 2 syntax in documentation build code diff -r 8c9a86aa222e -r ecdc864884a9 Doc/tools/extensions/patchlevel.py --- a/Doc/tools/extensions/patchlevel.py Sun Jan 29 10:00:23 2017 +0000 +++ b/Doc/tools/extensions/patchlevel.py Sun Jan 29 10:05:02 2017 +0000 @@ -61,8 +61,8 @@ 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__': diff -r 8c9a86aa222e -r ecdc864884a9 Misc/NEWS --- a/Misc/NEWS Sun Jan 29 10:00:23 2017 +0000 +++ b/Misc/NEWS Sun Jan 29 10:05:02 2017 +0000 @@ -50,6 +50,11 @@ Py_BuildValue() were not available in limited API of version < 3.3 when PY_SSIZE_T_CLEAN is defined. +Documentation +------------- + +- Issue #29349: Fix Python 2 syntax in code for building the documentation. + What's New in Python 3.5.3? ===========================