From ba7b18a44e97f1277f9692fe38ca28d57bd13569 2006-02-15 14:10:49 From: vivainio Date: 2006-02-15 14:10:49 Subject: [PATCH] Pprint works again --- diff --git a/IPython/Magic.py b/IPython/Magic.py index 9e41a83..8711573 100644 --- a/IPython/Magic.py +++ b/IPython/Magic.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Magic functions for InteractiveShell. -$Id: Magic.py 1140 2006-02-10 17:07:11Z vivainio $""" +$Id: Magic.py 1163 2006-02-15 14:10:49Z vivainio $""" #***************************************************************************** # Copyright (C) 2001 Janko Hauser and @@ -2112,9 +2112,9 @@ Defaulting color scheme to 'NoColor'""" def magic_Pprint(self, parameter_s=''): """Toggle pretty printing on/off.""" - self.shell.outputcache.Pprint = 1 - self.shell.outputcache.Pprint + self.shell.rc.pprint = 1 - self.shell.rc.pprint print 'Pretty printing has been turned', \ - ['OFF','ON'][self.shell.outputcache.Pprint] + ['OFF','ON'][self.shell.rc.pprint] def magic_exit(self, parameter_s=''): """Exit IPython, confirming if configured to do so. diff --git a/doc/ChangeLog b/doc/ChangeLog index 0f85ca6..ba66b31 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2006-02-15 Ville Vainio + + * Magic.py: %Pprint work again + 2006-02-11 Fernando Perez * IPython/hooks.py (editor): quote the call to the editor command,