MCPcopy Index your code
hub / github.com/python/cpython / wrapper

Function wrapper

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

functionFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…