Commit 93f36415 authored by Igor Dejanovic's avatar Igor Dejanovic

Fix in debug message

parent ecf34778
...@@ -966,7 +966,10 @@ class Parser(object): ...@@ -966,7 +966,10 @@ class Parser(object):
for_second_pass.append((node.rule_name, retval)) for_second_pass.append((node.rule_name, retval))
if self.debug: if self.debug:
print("\tApplying semantic action ", type(sem_action)) action_name = sem_action.__name__ \
if hasattr(sem_action, '__name__') \
else sem_action.__class__.__name__
print("\tApplying semantic action ", action_name)
else: else:
if defaults: if defaults:
......
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