Skip to content

Suppress RedefinedWhileUnused for submodule import - #62

Merged
sigmavirus24 merged 1 commit into
PyCQA:masterfrom
jayvdb:lp1578051
May 5, 2016
Merged

Suppress RedefinedWhileUnused for submodule import#62
sigmavirus24 merged 1 commit into
PyCQA:masterfrom
jayvdb:lp1578051

Conversation

@jayvdb

@jayvdb jayvdb commented May 4, 2016

Copy link
Copy Markdown
Member

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

jayvdb commented May 5, 2016

Copy link
Copy Markdown
Member Author

@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
Copy Markdown
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.

2 participants