MCPcopy Create free account
hub / github.com/numpy/numpy / rm_file

Method rm_file

numpy/distutils/misc_util.py:2055–2060  ·  view source on GitHub ↗
(f=target,p=self.info)

Source from the content-addressed store, hash-verified

2053 f.write('version = %r\n' % (version))
2054
2055 def rm_file(f=target,p=self.info):
2056 if delete:
2057 try: os.remove(f); p('removed '+f)
2058 except OSError: pass
2059 try: os.remove(f+'c'); p('removed '+f+'c')
2060 except OSError: pass
2061
2062 atexit.register(rm_file)
2063

Callers

nothing calls this directly

Calls 1

pFunction · 0.85

Tested by

no test coverage detected