From: Stefan Behnel Date: Thu, 11 Nov 2010 21:35:48 +0000 (+0100) Subject: trial fix for bizarre build bug X-Git-Tag: 0.14.alpha0~185 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eec9f0ff9e052401f2083c529e4611ae04dc74c9;p=cython.git trial fix for bizarre build bug --- diff --git a/Cython/Compiler/Visitor.pxd b/Cython/Compiler/Visitor.pxd index 00ddb177..ccd23f1d 100644 --- a/Cython/Compiler/Visitor.pxd +++ b/Cython/Compiler/Visitor.pxd @@ -4,7 +4,7 @@ cdef class BasicVisitor: cdef dict dispatch_table cpdef visit(self, obj) cdef _visit(self, obj) - cdef _find_handler(self, obj) + cdef find_handler(self, obj) cdef class TreeVisitor(BasicVisitor): cdef public list access_path diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 545f855b..6ff36034 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -26,11 +26,11 @@ class BasicVisitor(object): try: handler_method = self.dispatch_table[type(obj)] except KeyError: - handler_method = self._find_handler(obj) + handler_method = self.find_handler(obj) self.dispatch_table[type(obj)] = handler_method return handler_method(obj) - def _find_handler(self, obj): + def find_handler(self, obj): cls = type(obj) #print "Cache miss for class %s in visitor %s" % ( # cls.__name__, type(self).__name__)