diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-09-07 10:23:10 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-09-07 10:23:10 +0200 |
commit | 7d24bf13562c03eace54dd0414abcbbe61675d97 (patch) | |
tree | 650b7220571935e97b54aa5b4de4f51de5265282 /builder.py | |
parent | 3b63bfe5dd9996c2519190bd6d6cc456328c021a (diff) | |
download | astroid-git-7d24bf13562c03eace54dd0414abcbbe61675d97.tar.gz |
closes #74746: should return empty module when __main__ is imported
Fixes a problem when a module imports __main__. While this is benign
normally (pylint just imports itself, and exposes its __main__ module to
astng, which is wrong, but not fatal), this led to a crash in our deployed,
standalone pylint version.
The fix is now that a completely empty module is returned, since neither the
linter nor the module in question can make any assumptions about __main__.
(patch by google)
Diffstat (limited to 'builder.py')
0 files changed, 0 insertions, 0 deletions