diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-04-08 14:24:57 +0200 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-04-08 14:24:57 +0200 |
| commit | d6a89691e89f1c92fa740ddc1641cc2d984c4497 (patch) | |
| tree | a42d8ab8261b451beac6ff07244af26232c7b06c | |
| parent | 72b38372163e931b037ea8016d6635bd44414fcc (diff) | |
| download | astroid-git-d6a89691e89f1c92fa740ddc1641cc2d984c4497.tar.gz | |
slightly more readable version
| -rw-r--r-- | bases.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -256,7 +256,8 @@ class UnboundMethod(Proxy): # instance of the class given as first argument. if (self._proxied.name == '__new__' and self._proxied.parent.frame().qname() == '%s.object' % BUILTINS): - return (x is YES and x or Instance(x) for x in caller.args[0].infer()) + return ((x is YES and x or Instance(x)) + for x in caller.args[0].infer()) return self._proxied.infer_call_result(caller, context) |
