diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2007-02-15 15:41:27 +0100 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2007-02-15 15:41:27 +0100 |
| commit | 3baaccc59c36c20bd68e75cccc62a9afa600b26f (patch) | |
| tree | 4943a68c513c1ca777964ffd257170c6332ef769 /__init__.py | |
| parent | 988e26b822a31d6c88015de604a4b53aec4717d0 (diff) | |
| download | astroid-git-3baaccc59c36c20bd68e75cccc62a9afa600b26f.tar.gz | |
fix 'open' builtin inference
Diffstat (limited to '__init__.py')
| -rw-r--r-- | __init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/__init__.py b/__init__.py index a8810d79..88782ffe 100644 --- a/__init__.py +++ b/__init__.py @@ -152,7 +152,8 @@ class Instance(Proxy): def __repr__(self): return 'Instance of %s.%s' % (self._proxied.root().name, self._proxied.name) - + __str__ = __repr__ + def callable(self): try: self._proxied.getattr('__call__') |
