diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-20 02:21:11 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-20 02:21:11 +0100 |
commit | 9cef773c96f48f31d0c021578ab9bc47e9b3acdc (patch) | |
tree | 8b701dea430a55ef17d818436d2f973fb3a1b6a1 /pyload/utils/__init__.py | |
parent | Convert tabs to 4-whitespaces (diff) | |
download | pyload-9cef773c96f48f31d0c021578ab9bc47e9b3acdc.tar.xz |
Use utils encode/decode
Diffstat (limited to 'pyload/utils/__init__.py')
-rw-r--r-- | pyload/utils/__init__.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py index 367aed5be..541dedbd8 100644 --- a/pyload/utils/__init__.py +++ b/pyload/utils/__init__.py @@ -84,10 +84,7 @@ def save_join(*args): if sys.getfilesystemencoding().startswith('ANSI'): def fs_encode(string): - try: - string = string.encode('utf-8') - finally: - return save_path(string) + return save_path(encode(string)) fs_decode = decode #decode utf8 |