[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/locking/lockinfo.py minor cleanup

Fred L. Drake, Jr. fdrake at gmail.com
Fri May 20 11:55:43 EDT 2005


Log message for revision 30465:
  minor cleanup

Changed:
  U   Zope3/trunk/src/zope/app/locking/lockinfo.py

-=-
Modified: Zope3/trunk/src/zope/app/locking/lockinfo.py
===================================================================
--- Zope3/trunk/src/zope/app/locking/lockinfo.py	2005-05-20 14:37:09 UTC (rev 30464)
+++ Zope3/trunk/src/zope/app/locking/lockinfo.py	2005-05-20 15:55:43 UTC (rev 30465)
@@ -54,7 +54,7 @@
         del self.data[key]
 
     def __contains__(self, key):
-        return self.data.has_key(key)
+        return key in self.data
 
     def __iter__(self):
         return iter(self.data)



More information about the Zope3-Checkins mailing list