Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix double indentation in _PrettyPrinterBase.group().

_PrettyPrinterBase.group() was increasing the indentation twice
(once in the call to begin_group() and once in the call to indent()).
Fixed by removing the call to indent().
  • Loading branch information...
commit 0a38ad0dc3027ceaae1076ade3886ba07e82f13b 1 parent 80c9e8e
@doerwalter doerwalter authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  IPython/lib/pretty.py
View
3  IPython/lib/pretty.py
@@ -155,8 +155,7 @@ def group(self, indent=0, open='', close=''):
"""like begin_group / end_group but for the with statement."""
self.begin_group(indent, open)
try:
- with self.indent(indent):
- yield
+ yield
finally:
self.end_group(indent, close)
Please sign in to comment.
Something went wrong with that request. Please try again.