def sanitize_file_name2(name, substitute='_'):
 if isbytestring(name):
  return sanitize_file_name(name, substitute=substitute)
 return sanitize_file_name_unicode(name, substitute=substitute)

def sanitize_file_name2 ( name , substitute = '_' ) : if isbytestring ( name ) : return sanitize_file_name ( name , substitute = substitute ) return sanitize_file_name_unicode ( name , substitute = substitute )
sanitize filenames removing invalid chars .