def namedtmp(name, rm=True):
 path = os.path.join(tmpdir(), name)
 if rm:
  try:
   os.unlink(path)
  except (OSError, IOError):
   pass
 return path

def namedtmp ( name , rm = True ) : path = os . path . join ( tmpdir ( ) , name ) if rm : try : os . unlink ( path ) except ( OSError , IOError ) : pass return path
return tmpdir+name .