trial fix for bizarre build bug
authorStefan Behnel <scoder@users.berlios.de>
Thu, 11 Nov 2010 21:35:48 +0000 (22:35 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 11 Nov 2010 21:35:48 +0000 (22:35 +0100)
Cython/Compiler/Visitor.pxd
Cython/Compiler/Visitor.py

index 00ddb177909444f1960b2758ba9b7ccc3e329eb7..ccd23f1d43535d5c54fe1fce433f28a2468ac9ea 100644 (file)
@@ -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
index 545f855b80824399a8727a786d5ba3e31ed48437..6ff36034d8ca196d70aed42f076581dc69b76c52 100644 (file)
@@ -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__)