[Python-modules-team] Bug#536513: Deprecation warnings with python2.6
Loïc Minier
lool at dooz.org
Fri Jul 10 17:28:43 UTC 2009
Package: ipython
Version: 0.9.1-3
Severity: minor
Tags: patch
Hi there
Rolf Leggewie provided a debdiff to Ubuntu to fix a deprecation warning
on startup with python2.6; attached. (from
https://bugs.launchpad.net/ubuntu/+source/ipython/+bug/349844)
Cheers,
--
Loïc Minier
-------------- next part --------------
diff -u ipython-0.9.1/debian/changelog ipython-0.9.1/debian/changelog
--- ipython-0.9.1/debian/changelog
+++ ipython-0.9.1/debian/changelog
@@ -1,3 +1,10 @@
+ipython (0.9.1-3ubuntu1) karmic; urgency=low
+
+ * sets module is deprecated in python 2.6. (LP: #349844)
+ * build requires quilt 0.46-5 or later for unpatch (LP: #383017)
+
+ -- Rolf Leggewie <foss at rolf.leggewie.biz> Wed, 03 Jun 2009 05:01:56 +0200
+
ipython (0.9.1-3) unstable; urgency=low
[ Stephan Peijnik ]
diff -u ipython-0.9.1/debian/control ipython-0.9.1/debian/control
--- ipython-0.9.1/debian/control
+++ ipython-0.9.1/debian/control
@@ -4,7 +4,7 @@
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Bernd Zeimetz <bzed at debian.org>, Ondrej Certik <ondrej at certik.cz>,
Stephan Peijnik <debian at sp.or.at>
-Build-Depends: debhelper (>= 5.0.37.2), cdbs (>= 0.4.43), python, python-support (>= 0.4), quilt
+Build-Depends: debhelper (>= 5.0.37.2), cdbs (>= 0.4.43), python, python-support (>= 0.4), quilt (>= 0.46-5)
Build-Depends-Indep: python-sphinx, python-pygments, python-foolscap, python-openssl (>= 0.6), python-nose, python-twisted-core, python-zope-interface, python-pexpect, python (>= 2.5) | python-ctypes
Homepage: http://ipython.scipy.org/
Vcs-Svn: svn://svn.debian.org/python-modules/packages/ipython/trunk/
diff -u ipython-0.9.1/debian/patches/series ipython-0.9.1/debian/patches/series
--- ipython-0.9.1/debian/patches/series
+++ ipython-0.9.1/debian/patches/series
@@ -4,0 +5 @@
+07_deprecate_sets_module.patch
only in patch2:
unchanged:
--- ipython-0.9.1.orig/debian/patches/07_deprecate_sets_module.patch
+++ ipython-0.9.1/debian/patches/07_deprecate_sets_module.patch
@@ -0,0 +1,32 @@
+The sets module is deprecated in python 2.6. This patch fixes LP bug 349844.
+
+Index: ipython-0.9.1/IPython/Magic.py
+===================================================================
+--- ipython-0.9.1.orig/IPython/Magic.py 2009-06-03 04:59:10.000000000 +0200
++++ ipython-0.9.1/IPython/Magic.py 2009-06-03 05:00:19.000000000 +0200
+@@ -35,7 +35,6 @@
+ from cStringIO import StringIO
+ from getopt import getopt,GetoptError
+ from pprint import pprint, pformat
+-from sets import Set
+
+ # cProfile was added in Python2.5
+ try:
+@@ -75,7 +74,7 @@
+ head, tail = dh[:-10], dh[-10:]
+
+ newhead = []
+- done = Set()
++ done = set()
+ for h in head:
+ if h in done:
+ continue
+@@ -149,7 +148,7 @@
+ filter(inst_magic,self.__dict__.keys()) + \
+ filter(inst_bound_magic,self.__class__.__dict__.keys())
+ out = []
+- for fn in Set(magics):
++ for fn in set(magics):
+ out.append(fn.replace('magic_','',1))
+ out.sort()
+ return out
More information about the Python-modules-team
mailing list