Dear python-debian maintainers, here's my NMU diff for this bug, which
I've also pushed to my python3 git branch.  I've uploaded this without
delay since it's a regression.

diff -Nru python-debian-0.1.21+nmu1/debian/changelog 
python-debian-0.1.21+nmu2/debian/changelog
--- python-debian-0.1.21+nmu1/debian/changelog  2012-08-22 16:27:06.000000000 
+0100
+++ python-debian-0.1.21+nmu2/debian/changelog  2012-09-05 11:29:00.000000000 
+0100
@@ -1,3 +1,11 @@
+python-debian (0.1.21+nmu2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * In Python 2, restore Deb822Dict.has_key method for compatibility.
+    (Closes: #686731)
+
+ -- Colin Watson <cjwat...@debian.org>  Wed, 05 Sep 2012 11:28:58 +0100
+
 python-debian (0.1.21+nmu1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru python-debian-0.1.21+nmu1/lib/debian/deb822.py 
python-debian-0.1.21+nmu2/lib/debian/deb822.py
--- python-debian-0.1.21+nmu1/lib/debian/deb822.py      2012-08-22 
16:26:15.000000000 +0100
+++ python-debian-0.1.21+nmu2/lib/debian/deb822.py      2012-09-05 
11:17:38.000000000 +0100
@@ -270,7 +270,10 @@
     def __contains__(self, key):
         key = _strI(key)
         return key in self.__keys
-    
+
+    if sys.version < '3':
+        has_key = __contains__
+
     ### END _mutable_mapping_mixin methods
 
     def __repr__(self):

Thanks,

-- 
Colin Watson                                       [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to