[issue19111] 2to3 should remove from future_builtins import *
Milan Oberkirch
report at bugs.python.org
Wed Jun 24 07:28:04 CEST 2015
Milan Oberkirch added the comment:
Here is a simple patch that would solve this issue.
The new fixer 'future_builtins' removes `from future_builtins import foo` statements if they aren't nested in other constructs (try-except, classes, ...) and replaces them with `pass` otherwise.
----------
keywords: +patch
nosy: +zvyn
versions: +Python 2.7, Python 3.6 -Python 3.5
Added file: http://bugs.python.org/file39795/2to3_fix_future_builtins.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19111>
_______________________________________
More information about the Python-bugs-list
mailing list