diff options
Diffstat (limited to 'Lib/pprint.py')
-rw-r--r-- | Lib/pprint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py index 6704f9b..346c70b 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py @@ -141,7 +141,7 @@ class PrettyPrinter: indent = indent + self.__indent_per_level self.__format(object[0], stream, indent, allowance + 1, context, level) - if len(object) > 1: + if length > 1: for ent in object[1:]: stream.write(',\n' + ' '*indent) self.__format(ent, stream, indent, |