summaryrefslogtreecommitdiffstats
path: root/Lib/pprint.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-01-31 01:10:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-01-31 01:10:03 (GMT)
commit4b8db419c278215ac1c79f4aac2b1453b13e8c83 (patch)
tree46b9ef850ed56c6ea6dae90de74947f965360b58 /Lib/pprint.py
parentdb96789ba7dd79438ca01d21d5f62a3adda2ffeb (diff)
downloadcpython-4b8db419c278215ac1c79f4aac2b1453b13e8c83.zip
cpython-4b8db419c278215ac1c79f4aac2b1453b13e8c83.tar.gz
cpython-4b8db419c278215ac1c79f4aac2b1453b13e8c83.tar.bz2
Update pprint() to match the new repr style for frozensets
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: