Mercurial > cpython-lru_cache-weakref
diff Lib/pprint.py @ 45067:8930ff230ee9
Update pprint() to match the new repr style for frozensets
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Thu, 31 Jan 2008 01:10:03 +0000 |
| parents | 6547be11f443 |
| children | 58a0d5524f9a |
line wrap: on
line diff
--- a/Lib/pprint.py Thu Jan 31 01:08:32 2008 +0000 +++ b/Lib/pprint.py Thu Jan 31 01:10:03 2008 +0000 @@ -175,13 +175,12 @@ 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:
