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: ...@@ -175,13 +175,12 @@ class PrettyPrinter:
write('{') write('{')
endchar = '}' endchar = '}'
object = sorted(object) object = sorted(object)
indent += 4
elif issubclass(typ, frozenset): elif issubclass(typ, frozenset):
if not length: if not length:
write('frozenset()') write('frozenset()')
return return
write('frozenset([') write('frozenset({')
endchar = '])' endchar = '})'
object = sorted(object) object = sorted(object)
indent += 10 indent += 10
else: 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