diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-07-13 08:08:51 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-07-13 08:08:51 +0200 |
commit | e90def52dffe56b7ce3a23ce4db146cf17e53548 (patch) | |
tree | 689385d5764747acffa1bb46270751ad72efa1bb /bases.py | |
parent | 15fb7649a74ad6296017c0e95bd2a96e010b0e52 (diff) | |
download | astroid-e90def52dffe56b7ce3a23ce4db146cf17e53548.tar.gz |
add __subclasses__ to special class attribute
Diffstat (limited to 'bases.py')
-rw-r--r-- | bases.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -168,7 +168,7 @@ class Instance(Proxy): if lookupclass: # class attributes not available through the instance # unless they are explicitly defined - if name in ('__name__', '__bases__', '__mro__'): + if name in ('__name__', '__bases__', '__mro__', '__subclasses__'): return self._proxied.local_attr(name) return self._proxied.getattr(name, context) raise NotFoundError(name) |