Bug#636726: another ipython fix necessary

Julian Taylor jtaylor.debian at googlemail.com
Sun Aug 7 11:59:29 UTC 2011


the other patch was unfortunately incomplete.

This needs to be applied too:

--- spyder-2.0.12.orig/spyderlib/widgets/externalshell/startup.py	2011-08-07 13:43:40.350580359 +0200
+++ spyder-2.0.12/spyderlib/widgets/externalshell/startup.py	2011-08-07 13:43:54.740580365 +0200
@@ -111,7 +111,10 @@
         raise TypeError("expected a character buffer object")
     glbs = globals()
     if '__ipythonshell__' in glbs:
-        glbs = glbs['__ipythonshell__'].IP.user_ns
+        try:
+            glbs = glbs['__ipythonshell__'].user_ns
+        except AttributeError:
+            glbs = glbs['__ipythonshell__'].IP.user_ns
     glbs['__file__'] = filename
     sys.argv = [filename]
     if args is not None:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20110807/249e6bad/attachment.pgp>


More information about the debian-science-maintainers mailing list