Issue #29349: Fix Python 2 syntax in documentation build code
authorMartin Panter <vadmium+py@gmail.com>
Sun, 29 Jan 2017 10:05:02 +0000 (10:05 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sun, 29 Jan 2017 10:05:02 +0000 (10:05 +0000)
Doc/tools/extensions/patchlevel.py
Misc/NEWS

index bca2eb8bad72797ad23ede1310de76ff43a4b217..9558b9ce433c5b20028c618be44979f412897c0c 100644 (file)
@@ -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__':
index 6ad85d53232055e473ecd2cbbf44cae143b4946f..eac8ba0a17c7f154b846d957b68cd949a18ac2be 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -50,6 +50,11 @@ C API
   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?
 ===========================