[Python-checkins] r65391 - python/trunk/Lib/bsddb/dbutils.py

brett.cannon python-checkins at python.org
Sat Aug 2 05:28:43 CEST 2008


Author: brett.cannon
Date: Sat Aug  2 05:28:42 2008
New Revision: 65391

Log:
Remove a dict.has_key() use to silence a warning raised under -3.


Modified:
   python/trunk/Lib/bsddb/dbutils.py

Modified: python/trunk/Lib/bsddb/dbutils.py
==============================================================================
--- python/trunk/Lib/bsddb/dbutils.py	(original)
+++ python/trunk/Lib/bsddb/dbutils.py	Sat Aug  2 05:28:42 2008
@@ -61,7 +61,7 @@
     """
     sleeptime = _deadlock_MinSleepTime
     max_retries = _kwargs.get('max_retries', -1)
-    if _kwargs.has_key('max_retries'):
+    if 'max_retries' in _kwargs:
         del _kwargs['max_retries']
     while True:
         try:


More information about the Python-checkins mailing list