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

Suppress RedefinedWhileUnused for submodule import #62

Merged
merged 1 commit into from May 5, 2016

Conversation

jayvdb
Copy link
Member

@jayvdb jayvdb commented May 4, 2016

Fixes lp:1578051

aec68a7 added module names to error messages, which included
a new class SubmoduleImportation to handle the special case
of submodule imports. It correctly handled the case of
a submodule import occurring after the root module was imported,
but didnt handle the opposite case of the submodule import
occurring before the root module was imported.

Fixes lp:1578051

aec68a7 added module names to error messages, which included
a new class SubmoduleImportation to handle the special case
of submodule imports.  It correctly handled the case of
a submodule import occurring after the root module was imported,
but didnt handle the opposite case of the submodule import
occurring before the root module was imported.
@jayvdb
Copy link
Member Author

jayvdb commented May 5, 2016

@sigmavirus24 , this is also a regression in the last release. A review would be helpful, so I can merge it.

@sigmavirus24 sigmavirus24 merged commit 45c28a3 into PyCQA:master May 5, 2016
@sigmavirus24
Copy link
Member

Thanks @jayvdb

epsy pushed a commit to epsy/pyflakes that referenced this pull request May 9, 2016
Fixes lp:1578051

aec68a7 added module names to error messages, which included
a new class SubmoduleImportation to handle the special case
of submodule imports.  It correctly handled the case of
a submodule import occurring after the root module was imported,
but didnt handle the opposite case of the submodule import
occurring before the root module was imported.
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.

None yet

2 participants