def unlink_quietly(*paths):
 def looper(*paths):
  for i in paths:
   if (type(i) == list):
    for path in i:
     (yield path)
   else:
    (yield i)
 for path in looper(*paths):
  try:
   _os.unlink(path)
  except:
   pass

def unlink_quietly ( * paths ) : def looper ( * paths ) : for i in paths : if ( type ( i ) == list ) : for path in i : ( yield path ) else : ( yield i ) for path in looper ( * paths ) : try : _os . unlink ( path ) except : pass
like the standard os .