diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2017-10-12 11:47:20 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-10-12 11:47:28 +0200 |
commit | 3592657a129019e1b88532da8efaf12a53835a91 (patch) | |
tree | db3724470fb9b11e761648c9468fc894d0255fa1 | |
parent | 08db26f34395e2c52023a5d33139975ff47ba8af (diff) | |
download | astroid-git-3592657a129019e1b88532da8efaf12a53835a91.tar.gz |
__package__ is accessible in every module. Close PyCQA/pylint#1693
-rw-r--r-- | astroid/scoped_nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py index d16150ee..d2feabca 100644 --- a/astroid/scoped_nodes.py +++ b/astroid/scoped_nodes.py @@ -257,7 +257,7 @@ class Module(LocalsDictNodeNG): # names of python special attributes (handled by getattr impl.) # names of module attributes available through the global scope - scope_attrs = set(('__name__', '__doc__', '__file__', '__path__')) + scope_attrs = {'__name__', '__doc__', '__file__', '__path__', '__package__'} _other_fields = ('name', 'doc', 'file', 'path', 'package', 'pure_python', 'future_imports') |