Mercurial > cpython-lru_cache-weakref
diff Lib/pprint.py @ 40818:a84460e53160
Nailed test_weakref.py. Pfew, messy!
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 11 Feb 2007 22:59:48 +0000 |
| parents | 4cdf21a0dbbc |
| children | 5f20286b0da9 |
line wrap: on
line diff
--- a/Lib/pprint.py Sun Feb 11 18:54:18 2007 +0000 +++ b/Lib/pprint.py Sun Feb 11 22:59:48 2007 +0000 @@ -141,8 +141,7 @@ if length: context[objid] = 1 indent = indent + self._indent_per_level - items = object.items() - items.sort() + items = sorted(object.items()) key, ent = items[0] rep = self._repr(key, context, level) write(rep)
