Skip to content

Commit bcc37ef

Browse files
authored
small optimisation to _format_fields
1 parent c7262d9 commit bcc37ef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

devtools/prettier.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ def _format_fields(
258258
for field, v in fields:
259259
self._stream.write(indent_new * self._c)
260260
if field: # field is falsy sometimes for odd things like call_args
261-
self._stream.write(str(field))
262-
self._stream.write('=')
261+
self._stream.write(f'{field}=')
263262
self._format(v, indent_new, False)
264263
self._stream.write(',\n')
265264
self._stream.write(indent_current * self._c + ')')

0 commit comments

Comments
 (0)