Revision b459a848 lib/utils/retry.py
b/lib/utils/retry.py | ||
---|---|---|
160 | 160 |
while True: |
161 | 161 |
retry_args = [] |
162 | 162 |
try: |
163 |
# pylint: disable-msg=W0142
|
|
163 |
# pylint: disable=W0142 |
|
164 | 164 |
return fn(*args) |
165 | 165 |
except RetryAgain, err: |
166 | 166 |
retry_args = err.args |
... | ... | |
171 | 171 |
remaining_time = end_time - _time_fn() |
172 | 172 |
|
173 | 173 |
if remaining_time < 0.0: |
174 |
# pylint: disable-msg=W0142
|
|
174 |
# pylint: disable=W0142 |
|
175 | 175 |
raise RetryTimeout(*retry_args) |
176 | 176 |
|
177 | 177 |
assert remaining_time >= 0.0 |
... | ... | |
208 | 208 |
rdict = {} |
209 | 209 |
|
210 | 210 |
def helper(*innerargs): |
211 |
# pylint: disable-msg=W0142
|
|
211 |
# pylint: disable=W0142 |
|
212 | 212 |
result = rdict["result"] = fn(*innerargs) |
213 | 213 |
if not ((callable(expected) and expected(result)) or result == expected): |
214 | 214 |
raise RetryAgain() |
Also available in: Unified diff