MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / wrap

Function wrap

src/scancode/pool.py:72–77  ·  view source on GitHub ↗
(self, timeout=None)

Source from the content-addressed store, hash-verified

70 if func.__name__ != 'wrap':
71
72 def wrap(self, timeout=None):
73 try:
74 result = func(self, timeout=timeout or 3600)
75 except TimeoutError as te:
76 raise ScanCodeTimeoutError() from te
77 return result
78
79 return wrap
80 else:

Callers

nothing calls this directly

Calls 2

funcFunction · 0.50

Tested by

no test coverage detected