Skip to content

Commit

Permalink
Issues python#29349: Merge Py 2 fix 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
vadmium committed Jan 29, 2017
2 parents 2be9889 + 8f3fb72 commit e61592e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tools/extensions/patchlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__':
Expand Down
5 changes: 5 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ C API
available only when Py_LIMITED_API is set to the PY_VERSION_HEX value of
the minimum Python version supporting this API.

Documentation
-------------

- Issue #29349: Fix Python 2 syntax in code for building the documentation.

Tests
-----

Expand Down

0 comments on commit e61592e

Please sign in to comment.