commit | 2da91c375b095a452dd1e81962983e89e3fd0d07 | [log] [tgz] |
---|---|---|
author | Facundo Batista <facundobatista@gmail.com> | Sat Jun 21 17:43:56 2008 +0000 |
committer | Facundo Batista <facundobatista@gmail.com> | Sat Jun 21 17:43:56 2008 +0000 |
tree | 833230da7671d829dd39742984e524bf046eba10 | |
parent | 8e1c52ac0e551505f0edb4aad2774c37e1d93ea5 [diff] [blame] |
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).
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 @@ 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