This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, benjamin.peterson, eric.araujo, lunaryorn
Date 2011-09-02.17:52:25
SpamBayes Score 0.003206709
Marked as misclassified No
Message-id <1314985945.93.0.167754599301.issue12873@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-09-02 17:52:26Arfreversetrecipients: + Arfrever, benjamin.peterson, eric.araujo, lunaryorn
2011-09-02 17:52:25Arfreversetmessageid: <1314985945.93.0.167754599301.issue12873@psf.upfronthosting.co.za>
2011-09-02 17:52:25Arfreverlinkissue12873 messages
2011-09-02 17:52:25Arfrevercreate