summaryrefslogtreecommitdiff
path: root/Lib/pprint.py
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-06-21 17:43:56 +0000
committerFacundo Batista <facundobatista@gmail.com>2008-06-21 17:43:56 +0000
commit2da91c375b095a452dd1e81962983e89e3fd0d07 (patch)
tree833230da7671d829dd39742984e524bf046eba10 /Lib/pprint.py
parent8e1c52ac0e551505f0edb4aad2774c37e1d93ea5 (diff)
downloadcpython-git-2da91c375b095a452dd1e81962983e89e3fd0d07.tar.gz
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py
index 93d850aca1..c48465b8d5 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