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

Function remove_files

Lib/test/test_import/__init__.py:149–155  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

147
148
149def remove_files(name):
150 for f in (name + ".py",
151 name + ".pyc",
152 name + ".pyw",
153 name + "$py.class"):
154 unlink(f)
155 rmtree('__pycache__')
156
157
158if _testsinglephase is not None:

Callers 5

setUpMethod · 0.85
test_failing_reloadMethod · 0.85
test_file_to_sourceMethod · 0.85

Calls 2

rmtreeFunction · 0.90
unlinkFunction · 0.85

Tested by 4

test_failing_reloadMethod · 0.68
test_file_to_sourceMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…