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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19111>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to