def ensure_not_exists(filename):
 try:
  os.unlink(filename)
 except OSError as e:
  if (e.errno != ENOENT):
   raise

def ensure_not_exists ( filename ) : try : os . unlink ( filename ) except OSError as e : if ( e . errno != ENOENT ) : raise
ensure that a file does not exist .