MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / decorator

Function decorator

pythonmemorymodule/pefile.py:54–62  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

52 return functools.lru_cache(maxsize, typed)
53
54 def decorator(f):
55 cached_func = functools.lru_cache(maxsize, typed)(f)
56
57 @functools.wraps(f)
58 def wrapper(*args, **kwargs):
59 # return copymod.deepcopy(cached_func(*args, **kwargs))
60 return copymod.copy(cached_func(*args, **kwargs))
61
62 return wrapper
63
64 return decorator
65

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected