This function does not replace with _

This commit is contained in:
Roland 2022-03-12 11:05:54 -07:00
parent 0afe03cd89
commit d4e7fc4ad9
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -717,7 +717,7 @@ INVALID_FILE_CHARS = re.compile(r'[/<>:\|"\\\?\*%]')
def escape_file_name(name: str) -> str:
"""Replace any invalid characters in a file name with "_"."""
"""Remove any invalid characters in a file name."""
return INVALID_FILE_CHARS.sub('', name)