summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cython/Compiler/Symtab.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py
index d9e7c4340..2ab1d5185 100644
--- a/Cython/Compiler/Symtab.py
+++ b/Cython/Compiler/Symtab.py
@@ -2105,8 +2105,7 @@ class CClassScope(ClassScope):
if name == "__new__":
error(pos, "__new__ method of extension type will change semantics "
"in a future version of Pyrex and Cython. Use __cinit__ instead.")
- entry = self.declare_var(name, py_object_type, pos,
- visibility='extern')
+ entry = self.declare_var(name, py_object_type, pos, visibility='ignore')
special_sig = get_special_method_signature(name)
if special_sig:
# Special methods get put in the method table with a particular