cleanup of last patch, fix typo in test name
authorStefan Behnel <scoder@users.berlios.de>
Mon, 6 Dec 2010 18:20:06 +0000 (19:20 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 6 Dec 2010 18:20:06 +0000 (19:20 +0100)
--HG--
rename : tests/run/pyfuncion_redefine_T489.pyx => tests/run/pyfunction_redefine_T489.pyx

Cython/Compiler/Symtab.py
tests/run/pyfunction_redefine_T489.pyx [moved from tests/run/pyfuncion_redefine_T489.pyx with 100% similarity]

index a619c671acfc3fed52ef529c084ca0359a89a694..068e99e101f882600933a3ebe4fbb41fb71fd99b 100644 (file)
@@ -531,7 +531,7 @@ class Scope(object):
         if entry:
             if entry.type.is_unspecified:
                 entry.type = py_object_type
-            elif not entry.type.is_pyobject:
+            elif entry.type is not py_object_type:
                 return self._declare_pyfunction(name, pos, visibility=visibility, entry=entry)
         else: # declare entry stub
             self.declare_var(name, py_object_type, pos, visibility=visibility)