Refs -- Replaced hardcoded class name in ForNode.__repr__().
@@ -143,9 +143,13 @@ class ForNode(Node):
def __repr__(self):
reversed_text = ' reversed' if self.is_reversed else ''
- return "<For Node: for %s in %s, tail_len: %d%s>" % \
- (', '.join(self.loopvars), self.sequence, len(self.nodelist_loop),
- reversed_text)
+ return '<%s: for %s in %s, tail_len: %d%s>' % (
+ self.__class__.__name__,
+ ', '.join(self.loopvars),
+ self.sequence,
+ len(self.nodelist_loop),
+ reversed_text,
+ )
def __iter__(self):
yield from self.nodelist_loop
