##// END OF EJS Templates
Keep trailing commas for tuple subclasses of length 1
Eric Wieser -
Show More
@@ -638,7 +638,7 b' def _seq_pprinter_factory(start, end):'
638 p.text(',')
638 p.text(',')
639 p.breakable()
639 p.breakable()
640 p.pretty(x)
640 p.pretty(x)
641 if len(obj) == 1 and type(obj) is tuple:
641 if len(obj) == 1 and isinstance(obj, tuple):
642 # Special case for 1-item tuples.
642 # Special case for 1-item tuples.
643 p.text(',')
643 p.text(',')
644 p.end_group(step, end)
644 p.end_group(step, end)
General Comments 0
You need to be logged in to leave comments. Login now