Re: [Sugar-devel] [PATCH sugar-base] Add support for IPython 0.11+

2011-12-20 Thread Sascha Silbe
Excerpts from Simon Schampijer's message of 2011-07-27 12:17:11 +0200: The outer try does check for an import error as well. Maybe it is clearer to do: try: # IPython 0.11+ from IPython.core.ultratb import AutoFormattedTB except ImportError: # IPython 0.10.2 and below

Re: [Sugar-devel] [PATCH sugar-base] Add support for IPython 0.11+

2011-07-27 Thread Simon Schampijer
On 07/24/2011 08:52 PM, Sascha Silbe wrote: From: Julian Taylorjtaylor.deb...@googlemail.com IPython 0.11 has changed API: AutoFormattedTB is now in IPython.core.ultratb, not in IPython.ultraTB. We automatically fall back to the pre-0.11 names if the 0.11 import statement fails. [added

[Sugar-devel] [PATCH sugar-base] Add support for IPython 0.11+

2011-07-24 Thread Sascha Silbe
From: Julian Taylor jtaylor.deb...@googlemail.com IPython 0.11 has changed API: AutoFormattedTB is now in IPython.core.ultratb, not in IPython.ultraTB. We automatically fall back to the pre-0.11 names if the 0.11 import statement fails. [added comments, changed description] Signed-off-by: Sascha