Skip to content

Commit 51ed352

Browse files
committed
gh-132855: Use overridden custom format for inherited PrettyPrinter
1 parent f7fa5d2 commit 51ed352

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/pprint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,8 @@ def _format(self, object, stream, indent, allowance, context, level):
221221
del context[objid]
222222
return
223223

224-
# write the one-line repr
225224
stream.write(rep)
226225

227-
228226
def _pprint_dataclass(self, object, stream, indent, allowance, context, level):
229227
# Lazy import to improve module import time
230228
from dataclasses import fields as dataclass_fields

0 commit comments

Comments
 (0)