MCPcopy
hub / github.com/rholder/retrying / wrap_simple

Function wrap_simple

retrying.py:34–40  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

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

Callers 1

retryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…