fix error message
authorStefan Behnel <scoder@users.berlios.de>
Tue, 23 Dec 2008 09:42:06 +0000 (10:42 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 23 Dec 2008 09:42:06 +0000 (10:42 +0100)
Cython/Compiler/Visitor.py

index b4ef5fd2ef1086f44df28c749172ede5b0c032ad..50856a3fabca59c5cb193bc3aae71045bf040b5e 100644 (file)
@@ -38,7 +38,7 @@ class BasicVisitor(object):
                     print self.access_path
                     print self.access_path[-1][0].pos
                     print self.access_path[-1][0].__dict__
-                raise RuntimeError("Visitor does not accept object: %s" % obj)
+                raise RuntimeError("Visitor does not accept object: %s" % (obj,))
             #print "Caching " + cls.__name__
             self.dispatch_table[cls] = handler_method
         return handler_method(obj)