Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f3fb72

Browse files
committed
Issue #29349: Fix Python 2 syntax in documentation build code
1 parent 8dbb0ca commit 8f3fb72

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Doc/tools/extensions/patchlevel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def get_version_info():
6161
return get_header_version_info('.')
6262
except (IOError, OSError):
6363
version, release = get_sys_version_info()
64-
print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \
65-
'using version of this interpreter (%s).' % release
64+
print('Can\'t get version info from Include/patchlevel.h, ' \
65+
'using version of this interpreter (%s).' % release, file=sys.stderr)
6666
return version, release
6767

6868
if __name__ == '__main__':

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ C API
5050
Py_BuildValue() were not available in limited API of version < 3.3 when
5151
PY_SSIZE_T_CLEAN is defined.
5252

53+
Documentation
54+
-------------
55+
56+
- Issue #29349: Fix Python 2 syntax in code for building the documentation.
57+
5358

5459
What's New in Python 3.5.3?
5560
===========================

0 commit comments

Comments
 (0)