summaryrefslogtreecommitdiffstats
path: root/Lib/pprint.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pprint.py')
-rw-r--r--Lib/pprint.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py
index b903391..43b6b0d 100644
--- a/Lib/pprint.py
+++ b/Lib/pprint.py
@@ -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: