diff options
Diffstat (limited to 'module/utils.py')
-rw-r--r-- | module/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/utils.py b/module/utils.py index 4406eafde..8748b7693 100644 --- a/module/utils.py +++ b/module/utils.py @@ -36,9 +36,9 @@ def remove_chars(string, repl): def save_path(name): #remove some chars if os.name == 'nt': - return remove_chars(name, '/?%*|"<>') + return remove_chars(name, '/\\?%*:|"<>') else: - return remove_chars(name, '\\"') + return remove_chars(name, '/\\"') def save_join(*args): @@ -54,7 +54,7 @@ if sys.getfilesystemencoding().startswith('ANSI'): try: string = string.encode('utf-8') finally: - return save_path(string) + return string fs_decode = decode #decode utf8 |