MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / rmtemp

Function rmtemp

test/basetest/utils.py:386–390  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

384 """
385
386 def rmtemp(name):
387 try:
388 os.remove(name)
389 except OSError:
390 pass
391
392 f = tempfile.NamedTemporaryFile(delete=False)
393 f.write(data.encode("utf-8") if not isinstance(data, bytes) else data)

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected