[Pkg-python-debian-commits] trunk r108: debfile.py: add has_key (same implementation of __contains__) to better

Stefano Zacchiroli zack at bononia.it
Thu Jun 5 12:46:12 UTC 2008


------------------------------------------------------------
revno: 108
committer: Stefano Zacchiroli <zack at bononia.it>
branch nick: pkg-python-debian
timestamp: Thu 2008-06-05 14:46:12 +0200
message:
  debfile.py: add has_key (same implementation of __contains__) to better
  emulate dictionary containers
modified:
  debian/changelog
  debian_bundle/debfile.py
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog	2008-05-31 01:18:23 +0000
+++ b/debian/changelog	2008-06-05 12:46:12 +0000
@@ -8,6 +8,10 @@
   * debian/control:
     - Fix a typo in the Description field (Closes: #483688)
 
+  [ Stefano Zacchiroli ]
+  * debfile.py: add has_key (same implementation of __contains__) to better
+    emulate dictionary containers
+
  -- John Wright <jsw at debian.org>  Fri, 30 May 2008 19:16:40 -0600
 
 python-debian (0.1.10) unstable; urgency=low

=== modified file 'debian_bundle/debfile.py'
--- a/debian_bundle/debfile.py	2007-08-20 17:37:07 +0000
+++ b/debian_bundle/debfile.py	2008-06-05 12:46:12 +0000
@@ -121,6 +121,9 @@
     def __contains__(self, fname):
         return self.has_file(fname)
 
+    def has_key(self, fname):
+        return self.has_file(fname)
+
     def __getitem__(self, fname):
         return self.get_content(fname)
 



More information about the pkg-python-debian-commits mailing list