diff options
| author | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-01 16:30:19 +0100 |
|---|---|---|
| committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-12-01 16:30:19 +0100 |
| commit | 3586502b7fe571c23c5d54bb9ae8d1d8f9c9dee4 (patch) | |
| tree | 1c407b2cde3563c60d064d84134ce253b533c503 /builder.py | |
| parent | 78c7c048a9685a8b01cc5317d72e9a7cb5a70285 (diff) | |
| download | astroid-3586502b7fe571c23c5d54bb9ae8d1d8f9c9dee4.tar.gz | |
instance attribute support for functions
Diffstat (limited to 'builder.py')
| -rw-r--r-- | builder.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -175,6 +175,8 @@ class ASTNGBuilder: # Const, Tuple, ... we may be wrong, may be not, but # anyway we don't want to pollute builtin's namespace continue + elif infered.is_function: + iattrs = infered.instance_attrs else: iattrs = infered.locals except AttributeError: |
