diff options
author | Facundo Batista <facundobatista@gmail.com> | 2008-06-21 17:43:56 (GMT) |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2008-06-21 17:43:56 (GMT) |
commit | 2da91c375b095a452dd1e81962983e89e3fd0d07 (patch) | |
tree | 833230da7671d829dd39742984e524bf046eba10 /Lib/pprint.py | |
parent | 8e1c52ac0e551505f0edb4aad2774c37e1d93ea5 (diff) | |
download | cpython-2da91c375b095a452dd1e81962983e89e3fd0d07.zip cpython-2da91c375b095a452dd1e81962983e89e3fd0d07.tar.gz cpython-2da91c375b095a452dd1e81962983e89e3fd0d07.tar.bz2 |
Fixed issue #2888. Now the behaviour of pprint when working with nested
structures follows the common sense (and works like in 2.5 and 3.0).
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 93d850a..c48465b 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py @@ -194,7 +194,7 @@ class PrettyPrinter: else: write('(') endchar = ')' - if self._indent_per_level > 1: + if self._indent_per_level > 1 and sepLines: write((self._indent_per_level - 1) * ' ') if length: context[objid] = 1 |