mirror of https://github.com/python/cpython
Remove a dict.has_key() use to silence a warning raised under -3.
This commit is contained in:
parent
50bb7e12ec
commit
926779e758
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue