Created
December 8, 2016 23:13
-
-
Save amyreese/f81d30c867ed2eaeb3bd25318da29686 to your computer and use it in GitHub Desktop.
pyflakes gives bad F821 for undefined name __module__
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo(object): | |
path = __module__ + '.Foo' | |
def bar(self): | |
print(self.path) | |
if __name__ == '__main__': | |
Foo().bar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment