From d4e7fc4ad9a30427462a68df779ae4310e18b052 Mon Sep 17 00:00:00 2001 From: Roland Date: Sat, 12 Mar 2022 11:05:54 -0700 Subject: [PATCH] This function does not replace with _ --- wrolpi/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrolpi/common.py b/wrolpi/common.py index 03a4bde6..e4ff7287 100644 --- a/wrolpi/common.py +++ b/wrolpi/common.py @@ -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)