[Pkg-sugar-commit] [sugar-base] 03/07: Add patch 1001 to add compatibility with ipython 0.11. Closes: bug#635289. Thanks to Julian Taylor.
Jonas Smedegaard
dr at jones.dk
Fri Apr 17 07:41:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.88.0-4
in repository sugar-base.
commit 47c6f33061907d766aa3900022fe69202cfd3d15
Author: Jonas Smedegaard <dr at jones.dk>
Date: Mon Jul 25 00:09:51 2011 +0200
Add patch 1001 to add compatibility with ipython 0.11. Closes: bug#635289. Thanks to Julian Taylor.
---
debian/patches/1001_modernize_ipython_support.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 21 insertions(+)
diff --git a/debian/patches/1001_modernize_ipython_support.patch b/debian/patches/1001_modernize_ipython_support.patch
new file mode 100644
index 0000000..7dfd9f8
--- /dev/null
+++ b/debian/patches/1001_modernize_ipython_support.patch
@@ -0,0 +1,20 @@
+Description: add compatibility with ipython 0.11
+ AutoFormattedTB now is in IPython.core.
+ Both possibilities are tried to remain compatible with older
+ ipython versions.
+Author: Julian Taylor <jtaylor.debian at googlemail.com>
+
+--- a/src/sugar/logger.py
++++ b/src/sugar/logger.py
+@@ -69,7 +69,10 @@
+ # Attempt to provide verbose IPython tracebacks.
+ # Importing IPython is slow, so we import it lazily.
+ try:
+- from IPython.ultraTB import AutoFormattedTB
++ try:
++ from IPython.core.ultratb import AutoFormattedTB
++ except ImportError:
++ from IPython.ultraTB import AutoFormattedTB
+ sys.excepthook = AutoFormattedTB(mode='Verbose',
+ color_scheme='NoColor')
+ except ImportError:
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dd48769
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1001_modernize_ipython_support.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-base.git
More information about the pkg-sugar-commit
mailing list