Package: pudb
Version: 2011.1-1
Severity: normal
Tags: patch
User: jtaylor.deb...@googlemail.com
Usertags: ipython-0.11

IPython 0.11 has been released last week [0,1]. It is currently
available in debian experimental.

In order to upgrade IPython in unstable your package needs to be updated
to deal with the new api and configuration system.
Some hints for migrating applications are available here:
http://wiki.ipython.org/0.11-Migration

Attached a patch which fixes this issue.

The documentation for the new version can be found here:
http://ipython.org/ipython-doc/rel-0.11/index.html

[0] http://mail.scipy.org/pipermail/ipython-dev/2011-July/008041.html
[1] http://ipython.org/ipython-doc/rel-0.11/whatsnew/version0.11.html












Description: compatibilty with ipython 0.11
 Embeded shells have a new api
Author: Julian Taylor <jtaylor.deb...@googlemail.com>
--- pudb-0.92.14.orig/pudb/shell.py
+++ pudb-0.92.14/pudb/shell.py
@@ -85,6 +85,10 @@ def run_ipython_shell(locals, globals, f
     # avoid IPython's namespace litter
     ns = locals.copy()
 
-    from IPython.Shell import IPShell
-    IPShell(argv=[], user_ns=ns, user_global_ns=globals) \
-            .mainloop(banner=banner)
+    try:
+      from IPython.frontend.terminal.embed import InteractiveShellEmbed
+      InteractiveShellEmbed(user_ns=ns, user_global_ns=globals, banner1=banner)()
+    except ImportError:
+      from IPython.Shell import IPShell
+      IPShell(argv=[], user_ns=ns, user_global_ns=globals) \
+              .mainloop(banner=banner)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to