def _removeIfPresent(filename):
 try:
  os.unlink(filename)
 except OSError as why:
  if (why.errno == ENOENT):
   return 0
  else:
   raise
 else:
  return 1

def _removeIfPresent ( filename ) : try : os . unlink ( filename ) except OSError as why : if ( why . errno == ENOENT ) : return 0 else : raise else : return 1
attempt to remove a file .