Your message dated Wed, 26 Aug 2009 00:02:45 +0000
with message-id <e1mg5yp-00085o...@ries.debian.org>
and subject line Bug#541719: fixed in python-mysqldb 1.2.2-9
has caused the Debian Bug report #541719,
regarding python-mysqldb: Python 2.6 deprecation warnings
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
541719: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541719
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-mysqldb
Version: 1.2.2-7ubuntu2
Severity: normal
Tags: patch
When using python-mysqldb on python 2.6, there is a couple of warnings
that will be output to the terminal.
These are fixed upstream: http://sourceforge.net/support/tracker.php?aid=2156977
-- System Information:
Debian Release: 5.0
APT prefers jaunty-updates
APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500,
'jaunty-backports'), (500, 'jaunty')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-13-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-mysqldb depends on:
ii libc6 2.9-4ubuntu6 GNU C Library: Shared libraries
ii libmysqlc 5.1.30really5.0.75-0ubuntu10.2 MySQL database client library
ii python 2.6.2-0ubuntu1 An interactive high-level object-o
ii python-su 0.8.7ubuntu4 automated rebuilding support for P
python-mysqldb recommends no packages.
Versions of packages python-mysqldb suggests:
ii mysql-ser 5.1.30really5.0.75-0ubuntu10.2 MySQL database server (metapackage
ii mysql-ser 5.1.30really5.0.75-0ubuntu10.2 MySQL database server binaries
pn python-eg <none> (no description available)
pn python-my <none> (no description available)
-- no debconf information
diff -Nru python-mysqldb-1.2.2/debian/changelog python-mysqldb-1.2.2/debian/changelog
--- python-mysqldb-1.2.2/debian/changelog 2009-08-15 15:00:53.000000000 -0500
+++ python-mysqldb-1.2.2/debian/changelog 2009-08-15 15:00:54.000000000 -0500
@@ -1,3 +1,9 @@
+python-mysqldb (1.2.2-9) UNRELEASED; urgency=low
+
+ * Add 07_python_2.6.dpatch to fix python 2.6 related warnings.
+
+ -- Mario Limonciello <supe...@ubuntu.com> Sat, 15 Aug 2009 14:59:53 -0500
+
python-mysqldb (1.2.2-8) unstable; urgency=low
[ Sandro Tosi ]
diff -Nru python-mysqldb-1.2.2/debian/patches/00list python-mysqldb-1.2.2/debian/patches/00list
--- python-mysqldb-1.2.2/debian/patches/00list 2009-08-15 15:00:53.000000000 -0500
+++ python-mysqldb-1.2.2/debian/patches/00list 2009-08-15 15:00:54.000000000 -0500
@@ -3,3 +3,4 @@
04_disable_ez_setup
05_null-connection-guard
06_mysql_connect_port
+07_python_2.6.dpatch
diff -Nru python-mysqldb-1.2.2/debian/patches/07_python_2.6.dpatch python-mysqldb-1.2.2/debian/patches/07_python_2.6.dpatch
--- python-mysqldb-1.2.2/debian/patches/07_python_2.6.dpatch 1969-12-31 18:00:00.000000000 -0600
+++ python-mysqldb-1.2.2/debian/patches/07_python_2.6.dpatch 2009-08-15 15:00:54.000000000 -0500
@@ -0,0 +1,75 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 07_python_2.6.dpatch by <supe...@ubuntu.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Cherry pick upstream 554 & 603 to fix python 2.6 support
+
+...@dpatch@
+diff -urNad python-mysqldb-1.2.2~/MySQLdb/__init__.py python-mysqldb-1.2.2/MySQLdb/__init__.py
+--- python-mysqldb-1.2.2~/MySQLdb/__init__.py 2007-02-26 13:00:32.000000000 -0600
++++ python-mysqldb-1.2.2/MySQLdb/__init__.py 2009-08-15 14:48:10.000000000 -0500
+@@ -19,8 +19,8 @@
+ import _mysql
+
+ if version_info != _mysql.version_info:
+- raise ImportError, "this is MySQLdb version %s, but _mysql is version %r" %\
+- (version_info, _mysql.version_info)
++ raise ImportError("this is MySQLdb version %s, but _mysql is version %r" %
++ (version_info, _mysql.version_info))
+
+ threadsafety = 1
+ apilevel = "2.0"
+@@ -31,25 +31,20 @@
+ from MySQLdb.times import Date, Time, Timestamp, \
+ DateFromTicks, TimeFromTicks, TimestampFromTicks
+
+-from sets import ImmutableSet
+-class DBAPISet(ImmutableSet):
++try:
++ frozenset
++except NameError:
++ from sets import ImmutableSet as frozenset
++
++class DBAPISet(frozenset):
+
+ """A special type of set for which A == x is true if A is a
+ DBAPISet and x is a member of that set."""
+
+- def __ne__(self, other):
+- from sets import BaseSet
+- if isinstance(other, BaseSet):
+- return super(DBAPISet.self).__ne__(self, other)
+- else:
+- return other not in self
+-
+ def __eq__(self, other):
+- from sets import BaseSet
+- if isinstance(other, BaseSet):
+- return super(DBAPISet, self).__eq__(self, other)
+- else:
+- return other in self
++ if isinstance(other, DBAPISet):
++ return not self.difference(other)
++ return other in self
+
+
+ STRING = DBAPISet([FIELD_TYPE.ENUM, FIELD_TYPE.STRING,
+@@ -65,6 +60,18 @@
+ DATETIME = TIMESTAMP
+ ROWID = DBAPISet()
+
++def test_DBAPISet_set_equality():
++ assert STRING == STRING
++
++def test_DBAPISet_set_inequality():
++ assert STRING != NUMBER
++
++def test_DBAPISet_set_equality_membership():
++ assert FIELD_TYPE.VAR_STRING == STRING
++
++def test_DBAPISet_set_inequality_membership():
++ assert FIELD_TYPE.DATE != STRING
++
+ def Binary(x):
+ return str(x)
+
--- End Message ---
--- Begin Message ---
Source: python-mysqldb
Source-Version: 1.2.2-9
We believe that the bug you reported is fixed in the latest version of
python-mysqldb, which is due to be installed in the Debian FTP archive:
python-mysqldb-dbg_1.2.2-9_amd64.deb
to pool/main/p/python-mysqldb/python-mysqldb-dbg_1.2.2-9_amd64.deb
python-mysqldb_1.2.2-9.diff.gz
to pool/main/p/python-mysqldb/python-mysqldb_1.2.2-9.diff.gz
python-mysqldb_1.2.2-9.dsc
to pool/main/p/python-mysqldb/python-mysqldb_1.2.2-9.dsc
python-mysqldb_1.2.2-9_amd64.deb
to pool/main/p/python-mysqldb/python-mysqldb_1.2.2-9_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 541...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jonas Meurer <m...@debian.org> (supplier of updated python-mysqldb package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 26 Aug 2009 01:50:35 +0200
Source: python-mysqldb
Binary: python-mysqldb python-mysqldb-dbg
Architecture: source amd64
Version: 1.2.2-9
Distribution: unstable
Urgency: low
Maintainer: Jonas Meurer <m...@debian.org>
Changed-By: Jonas Meurer <m...@debian.org>
Description:
python-mysqldb - A Python interface to MySQL
python-mysqldb-dbg - A Python interface to MySQL (debug extension)
Closes: 541719
Changes:
python-mysqldb (1.2.2-9) unstable; urgency=low
.
* Add 02_python_2.6.dpatch to fix python 2.6 related warnings. Thanks to
Mario Limonciello <supe...@ubuntu.com> for the patch. (closes: #541719)
* bump standards-version to 3.8.3, no changes required.
Checksums-Sha1:
35b9f3e4de6bbec4e03e89fce76436299bc94fcb 1531 python-mysqldb_1.2.2-9.dsc
7407b99c8067cc756c3a58d158990b354d59b4a1 10793 python-mysqldb_1.2.2-9.diff.gz
bd0f1e0e3b35c4a86be5d52bc102ffa5deb658cd 100700
python-mysqldb_1.2.2-9_amd64.deb
6f416b22df228aeb051cfc80334fa0f66cdfa9bc 170920
python-mysqldb-dbg_1.2.2-9_amd64.deb
Checksums-Sha256:
b9784f5397cb51063907f857a838f86cf3e1a698c80f0756c48aeff9328765c8 1531
python-mysqldb_1.2.2-9.dsc
e7398d36b5e767e8ddcdea9c835309c7c0bf202aeb0317884dbb6960bac07b3b 10793
python-mysqldb_1.2.2-9.diff.gz
c55981b19089a32dd5384931a67cbf8d8a2a1d6dbd24a40d80ee1536f2f91d7f 100700
python-mysqldb_1.2.2-9_amd64.deb
7262e36a061f9e4174d7d0ee87e594bfea58bcb3c3d7e1b051244d661340b7c4 170920
python-mysqldb-dbg_1.2.2-9_amd64.deb
Files:
ad6c2a094518eaa1a93dede7ae78f09a 1531 python optional
python-mysqldb_1.2.2-9.dsc
220be5d9b6b7a10e19497acbcff5580b 10793 python optional
python-mysqldb_1.2.2-9.diff.gz
67e6f269c7890ca4d394badf95b8ba84 100700 python optional
python-mysqldb_1.2.2-9_amd64.deb
6011c36c5c1d595cad9f763a2154f664 170920 debug extra
python-mysqldb-dbg_1.2.2-9_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkqUeTkACgkQd6lUs+JfIQJf9gCbB1e9kH7eoD6YhtBkgGZ9ztOi
r6YAn3JN/DZVm11bQf+bGhKkz+qyDjBF
=VPeh
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team