##// END OF EJS Templates
Show "maxlen" in deque repr...
William Andrea -
Show More
@@ -908,6 +908,8 b' def _deque_pprint(obj, p, cycle):'
908 908 cls_ctor = CallExpression.factory(obj.__class__.__name__)
909 909 if cycle:
910 910 p.pretty(cls_ctor(RawText("...")))
911 elif obj.maxlen is not None:
912 p.pretty(cls_ctor(list(obj), maxlen=obj.maxlen))
911 913 else:
912 914 p.pretty(cls_ctor(list(obj)))
913 915
General Comments 0
You need to be logged in to leave comments. Login now