[docs] [issue29349] Update old Python 2 code in Docs/tools/extensions/patchlevel.py
report at bugs.python.org
Mon Jan 23 04:41:21 EST 2017
New submission from Jim Fasarakis-Hilliard:
There's a hidden Python 2 print call in the script that only gets reached after you move the Doc/ folder outside the main CPython directory and run `make html`.
Additionally, an obsolete way of assuring a file gets closed is used (changed to use `with` statement).
P.S: Tagged this with the Documentation component, maybe build is more applicable but I wasn't sure.
assignee: docs at python
nosy: Jim Fasarakis-Hilliard, docs at python
title: Update old Python 2 code in Docs/tools/extensions/patchlevel.py
versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file46387/patchlevel.patch
Python tracker <report at bugs.python.org>
More information about the docs