From 0a38ad0dc3027ceaae1076ade3886ba07e82f13b 2012-03-23 12:33:07 From: Walter Doerwald Date: 2012-03-23 12:33:07 Subject: [PATCH] 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(). --- diff --git a/IPython/lib/pretty.py b/IPython/lib/pretty.py index 61792fd..7d7c2fb 100644 --- a/IPython/lib/pretty.py +++ b/IPython/lib/pretty.py @@ -155,8 +155,7 @@ class _PrettyPrinterBase(object): """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)