[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker ___

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2015-10-17 Thread Jos de Kloe
Jos de Kloe added the comment: still having this issue with 2to3 from python-tools-2.7.8-11 as packaged by Fedora 21. Any progress since 2011? -- nosy: +jdekloe ___ Python tracker

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-09-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t understand what the bug is. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12873 ___

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-09-02 Thread Arfrever Frehtes Taifersar Arahesis
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__.)

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-09-02 Thread Sebastian Wiesner
Sebastian Wiesner lunary...@googlemail.com added the comment: More precisely, the bug is, that 2to3 refactors the print() invocation in test1.py though it shouldn't because a print_function future import is present at the beginning of test1.py. The cross-check with test2.py shows that this

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-09-01 Thread Sebastian Wiesner
Changes by Sebastian Wiesner lunary...@googlemail.com: -- nosy: +lunar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12873 ___ ___

[issue12873] 2to3 incorrectly handles multi-line imports from __future__

2011-08-31 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: $ cat test1.py from __future__ import (absolute_import, division, print_function, unicode_literals) print(1, 2) $ cat test2.py from __future__ import (absolute_import, division, print_function,