-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'import six' can be after its first use #19
Comments
Signed-off-by: Daira Hopwood <[email protected]>
A test is on the https://github.com/python-modernize/python-modernize/commits/19-import-after-use branch. |
Looks like the bug is actually in |
…udes the test for #19. refs #19, #26 Signed-off-by: Daira Hopwood <[email protected]>
This seems relevant: http://bugs.python.org/issue14282 |
Yes, I think adding imports after existing ones is wrong in general. Imports added by
(See also #18.) |
According to |
Signed-off-by: Daira Hopwood <[email protected]>
Signed-off-by: Daira Hopwood <[email protected]>
Signed-off-by: Daira Hopwood <[email protected]>
Huh, I can no longer reproduce this using the tests that reproduced it before (which are now on master). Bumping this out of the 0.4 release. |
…udes the test for #19. refs #19, #26 Signed-off-by: Daira Hopwood <[email protected]>
…udes the test for #19. refs #19, #26 Signed-off-by: Daira Hopwood <[email protected]>
which doesn't work because the import of six is after the first use.
(moved from mitsuhiko/python-modernize#20 )
The text was updated successfully, but these errors were encountered: