Kaydet (Commit) 4b8db419 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Update pprint() to match the new repr style for frozensets

üst db96789b
......@@ -175,13 +175,12 @@ class PrettyPrinter:
write('{')
endchar = '}'
object = sorted(object)
indent += 4
elif issubclass(typ, frozenset):
if not length:
write('frozenset()')
return
write('frozenset([')
endchar = '])'
write('frozenset({')
endchar = '})'
object = sorted(object)
indent += 10
else:
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment