Skip to content

Commit 0b6a234

Browse files
authored
gh-145887: Use write() instead of stream.write() in PrettyPrinter._pprint_frozendict (#145894)
1 parent 962fb87 commit 0b6a234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def _pprint_dict(self, object, stream, indent, allowance, context, level):
238238
def _pprint_frozendict(self, object, stream, indent, allowance, context, level):
239239
write = stream.write
240240
cls = object.__class__
241-
stream.write(cls.__name__ + '(')
241+
write(cls.__name__ + '(')
242242
length = len(object)
243243
if length:
244244
self._pprint_dict(object, stream,

0 commit comments

Comments
 (0)