Skip to content

Commit a7b0053

Browse files
committed
Use write() instead of stream.write() in pprint.PrettyPrinter._pprint_frozendict.
1 parent 08a018e commit a7b0053

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)