diff options
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 e54edbe19c..a7868cc422 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) | 
