MCPcopy Index your code
hub / github.com/RustPython/RustPython / wrapper

Function wrapper

Lib/test/test_gzip.py:1051–1056  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

1049 def decorator(function):
1050 @functools.wraps(function)
1051 def wrapper(*args, **kwargs):
1052 os.makedirs(directory)
1053 try:
1054 return function(*args, **kwargs)
1055 finally:
1056 os_helper.rmtree(directory)
1057 return wrapper
1058 return decorator
1059

Callers

nothing calls this directly

Calls 1

functionFunction · 0.50

Tested by

no test coverage detected