diff --git a/Doc/tools/extensions/patchlevel.py b/Doc/tools/extensions/patchlevel.py index bca2eb8bad7..9558b9ce433 100644 --- a/Doc/tools/extensions/patchlevel.py +++ b/Doc/tools/extensions/patchlevel.py @@ -61,8 +61,8 @@ 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__': diff --git a/Misc/NEWS b/Misc/NEWS index 137de9d0ef1..add8d744fa7 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -847,6 +847,11 @@ Windows - Issue #28896: Deprecate WindowsRegistryFinder and disable it by default. +Documentation +------------- + +- Issue #29349: Fix Python 2 syntax in code for building the documentation. + Tests -----