summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/dbutils.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-21 00:21:47 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-21 00:21:47 (GMT)
commit2043513bd584a08cc7d748562bd8011b989b3659 (patch)
treea2f33ad9469d3aa1bfb32fa6e003f7e24dc6af7e /Lib/bsddb/dbutils.py
parentf1a69c16665c6c031c4723e5bc3e6d6f4118fa5e (diff)
downloadcpython-2043513bd584a08cc7d748562bd8011b989b3659.zip
cpython-2043513bd584a08cc7d748562bd8011b989b3659.tar.gz
cpython-2043513bd584a08cc7d748562bd8011b989b3659.tar.bz2
Fixed to the point that all unit tests pass again. (However, I get 4
"exception in thread" messages, one about a killed locker, and three assertions.) Details: test/test_dbshelve.py: - kill reference to InstanceType test/test_basics.py: - use // for int division - use 'in' instead of has_key dbshelve.py: - fix bug in previous has_key fix, use self.db.has_key instead of self.has_key dbtables.py: - use 'in' instead of has_key dbutils.py: - fix bug in previous has_key fix, test for 'max_retries', not 'max_tries'
Diffstat (limited to 'Lib/bsddb/dbutils.py')
-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 0c4c1cb..daec873 100644
--- a/Lib/bsddb/dbutils.py
+++ b/Lib/bsddb/dbutils.py
@@ -55,7 +55,7 @@ def DeadlockWrap(function, *_args, **_kwargs):
"""
sleeptime = _deadlock_MinSleepTime
max_retries = _kwargs.get('max_retries', -1)
- if 'max_tries' in _kwargs:
+ if 'max_retries' in _kwargs:
del _kwargs['max_retries']
while True:
try: