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

This commit is contained in:
Brett Cannon 2008-08-02 03:28:42 +00:00
parent 50bb7e12ec
commit 926779e758
1 changed files with 1 additions and 1 deletions

View File

@ -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: