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

minor code simplification

parent d15619dd
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Tree visitor and transform framework # Tree visitor and transform framework
# #
from __future__ import absolute_import from __future__ import absolute_import, print_function
import sys import sys
import inspect import inspect
...@@ -162,7 +162,7 @@ class TreeVisitor(object): ...@@ -162,7 +162,7 @@ class TreeVisitor(object):
handler_method = getattr(self, pattern % mro_cls.__name__, None) handler_method = getattr(self, pattern % mro_cls.__name__, None)
if handler_method is not None: if handler_method is not None:
return handler_method return handler_method
print('%s: %s' % (type(self), cls)) print(type(self), cls)
if self.access_path: if self.access_path:
print(self.access_path) print(self.access_path)
print(self.access_path[-1][0].pos) 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