summaryrefslogtreecommitdiffstats
path: root/pyload/utils/__init__.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-20 02:21:11 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-20 02:21:11 +0100
commit9cef773c96f48f31d0c021578ab9bc47e9b3acdc (patch)
tree8b701dea430a55ef17d818436d2f973fb3a1b6a1 /pyload/utils/__init__.py
parentConvert tabs to 4-whitespaces (diff)
downloadpyload-9cef773c96f48f31d0c021578ab9bc47e9b3acdc.tar.xz
Use utils encode/decode
Diffstat (limited to 'pyload/utils/__init__.py')
-rw-r--r--pyload/utils/__init__.py5
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