Your message dated Wed, 22 Jul 2009 21:34:43 +0000
with message-id <[email protected]>
and subject line Bug#524061: fixed in python-debian 0.1.14
has caused the Debian Bug report #524061,
regarding python-debian: [patch] avoid deprecation warning with python2.6
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 [email protected]
immediately.)


-- 
524061: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524061
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-debian
Version: 0.1.13
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu jaunty ubuntu-patch


In Ubuntu, we've applied the attached patch to achieve the following:

  * Merge from debian unstable, remaining changes:
    -  debian_bundle/deb822.py: use __new__ instead of
       __init__ to avoid a warning with Python 2.6; LP: #339466.

We thought you might be interested in doing the same. 

See also:
https://bugs.launchpad.net/ubuntu/+source/python-debian/+bug/339466
and
http://www.python.org/download/releases/2.2/descrintro/#__new__ 

-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic
  APT policy: (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-11-generic (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru python-debian-0.1.13/debian_bundle/deb822.py python-debian-0.1.13ubuntu1/debian_bundle/deb822.py
--- python-debian-0.1.13/debian_bundle/deb822.py	2009-04-07 11:02:10.000000000 +0200
+++ python-debian-0.1.13ubuntu1/debian_bundle/deb822.py	2009-04-17 06:03:31.000000000 +0200
@@ -1048,10 +1048,11 @@
     """Case insensitive string.
     """
 
-    def __init__(self, str_):
-        str.__init__(self, str_)
-        self.str_lower = str_.lower()
-        self.str_lower_hash = hash(self.str_lower)
+    def __new__(cls, str_):
+        s = str.__new__(cls, str_)
+        s.str_lower = str_.lower()
+        s.str_lower_hash = hash(s.str_lower)
+        return s
 
     def __hash__(self):
         return self.str_lower_hash

--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 0.1.14

We believe that the bug you reported is fixed in the latest version of
python-debian, which is due to be installed in the Debian FTP archive:

python-debian_0.1.14.dsc
  to pool/main/p/python-debian/python-debian_0.1.14.dsc
python-debian_0.1.14.tar.gz
  to pool/main/p/python-debian/python-debian_0.1.14.tar.gz
python-debian_0.1.14_all.deb
  to pool/main/p/python-debian/python-debian_0.1.14_all.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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Zacchiroli <[email protected]> (supplier of updated python-debian 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 18 Jul 2009 21:26:40 +0200
Source: python-debian
Binary: python-debian
Architecture: source all
Version: 0.1.14
Distribution: unstable
Urgency: low
Maintainer: Stefano Zacchiroli <[email protected]>
Changed-By: Stefano Zacchiroli <[email protected]>
Description: 
 python-debian - Python modules to work with Debian-related data formats
Closes: 524061 525694
Changes: 
 python-debian (0.1.14) unstable; urgency=low
 .
   [ Stefano Zacchiroli ]
   * setup.py.in: switch to setuptools, which are able to generate eggs;
     add matching build-dep on python-setuptools (Closes: #525694)
   * examples/deb822/: add new example render-dctrl, to render packages in
     a dctrl-tools pipeline (using Markdown as long description syntax)
   * deb822: use __new__ to sub-class strings for case-insensitiveness;
     former approach is deprecated with python 2.6.
     Thanks to Loïc Minier for the patch. (Closes: #524061)
 .
   [ Filippo Giunchedi ]
   * deb822: parse also Binary as PkgRelation, thus add .binary attribute
 .
   [ Muharem Hrnjadovic ]
   * fixed changelog parser exception raised when dealing with empty
     changelog files (LP: #400589).
Checksums-Sha1: 
 a375de0ced2de6a7c4726bcb03a6f7a981ff7c3f 1224 python-debian_0.1.14.dsc
 00521e603691403da83a517a8ff10cb4e0e05bcc 176558 python-debian_0.1.14.tar.gz
 7ddbfb002793201882b91143d8c5067ccdb579bb 58472 python-debian_0.1.14_all.deb
Checksums-Sha256: 
 c806e20e0d5fcb47551bd28e3042304ff39c0339ace38d4750da2f34c3e325f3 1224 
python-debian_0.1.14.dsc
 40be3da49191a26b3301f18d6824c2a3e7ef4ac52a99ed4484d9176ecc7685e8 176558 
python-debian_0.1.14.tar.gz
 678f638409a74515693e9d7e4b294cd521caa90186bd57b75f1f20a948198cae 58472 
python-debian_0.1.14_all.deb
Files: 
 b153648eaf2fbf2b20e07986f3f8fc37 1224 python optional python-debian_0.1.14.dsc
 9d05b7813dbbdb4fd8d41f4a2825de57 176558 python optional 
python-debian_0.1.14.tar.gz
 c88d4c877f2d9f088aec8983a3c36bf9 58472 python optional 
python-debian_0.1.14_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKYiPr1cqbBPLEI7wRAqbLAJ9a2Eq14pGRlgOJfsbvu2YjydInfACgq4wy
vg8eC7LryZSguNuOYCBskeM=
=fMxy
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to