summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-02 03:28:42 +0000
committerBrett Cannon <bcannon@gmail.com>2008-08-02 03:28:42 +0000
commit926779e75840b99073e47ac08e9ce8b2f520533d (patch)
tree2e85b1e4c0d87d4048cce9224b7a8e75c78cddb2
parent50bb7e12ec32da69b89a9b7cfdfdd899d2c8c685 (diff)
downloadcpython-git-926779e75840b99073e47ac08e9ce8b2f520533d.tar.gz
Remove a dict.has_key() use to silence a warning raised under -3.
-rw-r--r--Lib/bsddb/dbutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/bsddb/dbutils.py b/Lib/bsddb/dbutils.py
index 8d2e7eff52..02a686f5d9 100644
--- a/Lib/bsddb/dbutils.py
+++ b/Lib/bsddb/dbutils.py
@@ -61,7 +61,7 @@ def DeadlockWrap(function, *_args, **_kwargs):
"""
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: