summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Halchenko <debian@onerussian.com>2012-12-05 11:51:18 -0500
committerYaroslav Halchenko <debian@onerussian.com>2012-12-05 11:51:18 -0500
commitc81b103adc894b8f3505a7e467d0d73e762ebd36 (patch)
tree796d9dc1848e319da286a7d99dd497dc56c88da0
parentfa4603e11447df0a9aa3935db04a16484697c8f4 (diff)
downloadcython-c81b103adc894b8f3505a7e467d0d73e762ebd36.tar.gz
fix analysis of entry to be a weakref (typo introduced in d96dfd)
Originally reported in Debian http://bugs.debian.org/cgi-bin/bugreport.cgi\?bug\=692313 Lead to crash with python-dbg: python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion 'gc->gc.gc_refs != 0' failed --HG-- extra : transplant_source : D%E7%E2%8D%C4i%B7%08%F4%83%08sQ%84%27%3E%F3%17%AB%24
-rw-r--r--Cython/Compiler/Symtab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py
index e49a5f59d..f8eedc53d 100644
--- a/Cython/Compiler/Symtab.py
+++ b/Cython/Compiler/Symtab.py
@@ -801,7 +801,7 @@ class Scope(object):
for entry in self.var_entries:
if entry.type.is_pyobject:
- if include_weakref or entry.name != "weakref":
+ if include_weakref or entry.name != "__weakref__":
py_attrs.append(entry)
elif entry.type == PyrexTypes.c_py_buffer_type:
py_buffers.append(entry)