Skip to content
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

fix import moved above a future import #461

Merged

Conversation

Hanaasagi
Copy link
Contributor

As you can see in issue #459, autopep8 will move import aboved a from __future__ import xxx, leading a syntax error.

Following code

from __future__ import print_function
a = 1
import os

will be converted to

import os
from __future__ import print_function
a = 1

So, I wanna to pull request to solve it : )

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 98.617% when pulling 9cd6ad5 on Hanaasagi:fix-import-moved-above-future-import into 40bcf6f on hhatto:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 98.617% when pulling 9cd6ad5 on Hanaasagi:fix-import-moved-above-future-import into 40bcf6f on hhatto:master.

@hhatto hhatto self-requested a review January 4, 2019 16:00
@hhatto
Copy link
Owner

hhatto commented Jan 12, 2019

@Hanaasagi

Thanks for your contribution!!
LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants