Show More
@@ -330,7 +330,7 b' class PrettyPrinter(_PrettyPrinterBase):' | |||
|
330 | 330 | def _enumerate(self, seq): |
|
331 | 331 | """like enumerate, but with an upper limit on the number of items""" |
|
332 | 332 | for idx, x in enumerate(seq): |
|
333 | if idx >= self.max_seq_length: | |
|
333 | if self.max_seq_length and idx >= self.max_seq_length: | |
|
334 | 334 | self.text(',') |
|
335 | 335 | self.breakable() |
|
336 | 336 | self.text('...') |
General Comments 0
You need to be logged in to leave comments.
Login now