Commit 24c7c8ec authored by Stefan Behnel's avatar Stefan Behnel

minor code simplification

parent d15619dd
......@@ -4,7 +4,7 @@
# Tree visitor and transform framework
#
from __future__ import absolute_import
from __future__ import absolute_import, print_function
import sys
import inspect
......@@ -162,7 +162,7 @@ class TreeVisitor(object):
handler_method = getattr(self, pattern % mro_cls.__name__, None)
if handler_method is not None:
return handler_method
print('%s: %s' % (type(self), cls))
print(type(self), cls)
if self.access_path:
print(self.access_path)
print(self.access_path[-1][0].pos)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment