From 7c832382412f494f444cf827869869ec049b1c0b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 6 Dec 2010 19:20:06 +0100 Subject: [PATCH] cleanup of last patch, fix typo in test name --HG-- rename : tests/run/pyfuncion_redefine_T489.pyx => tests/run/pyfunction_redefine_T489.pyx --- Cython/Compiler/Symtab.py | 2 +- ...pyfuncion_redefine_T489.pyx => pyfunction_redefine_T489.pyx} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/run/{pyfuncion_redefine_T489.pyx => pyfunction_redefine_T489.pyx} (100%) diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index a619c671..068e99e1 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -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) diff --git a/tests/run/pyfuncion_redefine_T489.pyx b/tests/run/pyfunction_redefine_T489.pyx similarity index 100% rename from tests/run/pyfuncion_redefine_T489.pyx rename to tests/run/pyfunction_redefine_T489.pyx -- 2.26.2