mirror of
ssh://devgit.janware.com/janware/proj/jw-python
synced 2026-06-18 01:16:38 +02:00
8 lines
221 B
Python
8 lines
221 B
Python
import os, errno
|
|
|
|
def silentremove(filename): #export
|
|
try:
|
|
os.remove(filename)
|
|
except OSError as e:
|
|
if e.errno != errno.ENOENT:
|
|
raise # re-raise exception if a different error occurred
|