diff options
author | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 (GMT) |
commit | 07f2436fa864c5a09150c8f0b250640f267f01bf (patch) | |
tree | 5877df7e61bbd4d641ff32346284aad239cebc0c /Lib/pprint.py | |
parent | 9afbb4e364e087a097610e9da47362518020cc2a (diff) | |
download | cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.zip cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.tar.gz cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.tar.bz2 |
Nailed test_weakref.py. Pfew, messy!
Diffstat (limited to 'Lib/pprint.py')
-rw-r--r-- | Lib/pprint.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py index e54edbe..a7868cc 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py @@ -141,8 +141,7 @@ class PrettyPrinter: 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) |