(f)
| 32 | # support both @retry and @retry() as valid syntax |
| 33 | if len(dargs) == 1 and callable(dargs[0]): |
| 34 | def wrap_simple(f): |
| 35 | |
| 36 | @six.wraps(f) |
| 37 | def wrapped_f(*args, **kw): |
| 38 | return Retrying().call(f, *args, **kw) |
| 39 | |
| 40 | return wrapped_f |
| 41 | |
| 42 | return wrap_simple(dargs[0]) |
| 43 |
no outgoing calls
no test coverage detected
searching dependent graphs…