Martin v. Löwis <mar...@v.loewis.de> added the comment: I think that's actually a bug in python-modernize, not in touch_import - or, rather, touch_import shouldn't be used to add future imports.
Instead, I think there should be a touch_future function which adds a future import, taking into account that future imports need to go before all other imports, but after a possible docstring. ---------- nosy: +loewis _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14282> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com