Skip to content

Commit 6c87555

Browse files
fix(pformat): Fix pformat
1 parent 21a8b26 commit 6c87555

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test_util/__init__.py

Whitespace-only changes.

util/pformat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def _try_fmt_seq_short(self, ctx: ContextStack, items: Sequence[object],
156156
dest = Dest()
157157
dest.write(start)
158158
# ^ Unlikely that `start` is already over the limit so don't check if we go over here
159-
for i in items:
160-
self._fmt(dest, 0, ctx, i)
159+
for i, v in enumerate(items):
160+
self._fmt(dest, 0, ctx, v)
161161
if i != len(items) - 1:
162162
dest.write(', ')
163163
if dest.length() > self.max_simple_len:

0 commit comments

Comments
 (0)