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

Function wrap

Lib/test/test_shutil.py:62–68  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

60def mock_rename(func):
61 @functools.wraps(func)
62 def wrap(*args, **kwargs):
63 try:
64 builtin_rename = os.rename
65 os.rename = _fake_rename
66 return func(*args, **kwargs)
67 finally:
68 os.rename = builtin_rename
69 return wrap
70
71def create_file(path, content=b''):

Callers 2

make_arangeMethod · 0.70
fooMethod · 0.70

Calls 1

funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…