[issue12873] 2to3 incorrectly handles multi-line imports from __future__
Arfrever Frehtes Taifersar Arahesis
report at bugs.python.org
Fri Sep 2 19:52:25 CEST 2011
Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com> added the comment:
If import from __future__ is written in multiple lines, then a parser internally used by 2to3 recognizes only the first line. (However Python interpreter properly supports multi-line imports from __future__.)
test1.py contains multi-line import from __future__.
test2.py contains single-line import from __future__.
2to3 properly handles test2.py and improperly handles test1.py.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12873>
_______________________________________
More information about the Python-bugs-list
mailing list