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

Skip to content

Commit e61592e

Browse files
committed
Issues #29349: Merge Py 2 fix 3.5
2 parents 2be9889 + 8f3fb72 commit e61592e

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
@@ -157,6 +157,11 @@ C API
157157
available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
158158
the minimum Python version supporting this API.
159159

160+
Documentation
161+
-------------
162+
163+
- Issue #29349: Fix Python 2 syntax in code for building the documentation.
164+
160165
Tests
161166
-----
162167

0 commit comments

Comments
 (0)