diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-22 20:04:29 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-22 20:04:29 +0100 |
commit | 0de6e675bb0c5a4adb79d16df55ada3071825ad5 (patch) | |
tree | 9ff782ba4c41873c8c7d06b239166d8a0806b335 /module/utils.py | |
parent | Revert plugins to stable (diff) | |
download | pyload-0de6e675bb0c5a4adb79d16df55ada3071825ad5.tar.xz |
Revert remaining modules
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 |