Arfrever Frehtes Taifersar Arahesis <arfrever....@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12873>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to