summaryrefslogtreecommitdiff
path: root/inference.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-02-24 19:05:26 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-02-24 19:05:26 +0100
commit6308983a2f1697e88e1034f70d0292ffdb175869 (patch)
treeef2daed35360d2dd5fe51e827fdba1ea16b9bf4c /inference.py
parentc363a4f5ea187e7a11b04fcbae74f72ffb66eac2 (diff)
downloadastroid-git-6308983a2f1697e88e1034f70d0292ffdb175869.tar.gz
apply Edward K. Ream patch (maximum recursion depth exceeded)
--HG-- branch : rebuild
Diffstat (limited to 'inference.py')
-rw-r--r--inference.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/inference.py b/inference.py
index e0b216be..e21785a6 100644
--- a/inference.py
+++ b/inference.py
@@ -50,9 +50,7 @@ _CONST_PROXY = {
_CONST_PROXY[type(None)].parent = _CONST_PROXY[bool].parent
def _set_proxied(const):
- if not hasattr(const, '__proxied'):
- const.__proxied = _CONST_PROXY[const.value.__class__]
- return const.__proxied
+ return _CONST_PROXY[const.value.__class__]
nodes.Const._proxied = property(_set_proxied)
def Const_pytype(self):