diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 17:20:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 17:20:59 +0200 |
commit | e00ef98491f79ae8aa972ae1473dae4a7b78c07e (patch) | |
tree | 31be0c7cdcebb61525bcc387bcf15d265a1c494a /pyload/utils | |
parent | Fix except (diff) | |
download | pyload-e00ef98491f79ae8aa972ae1473dae4a7b78c07e.tar.xz |
Cleanup
Diffstat (limited to 'pyload/utils')
-rw-r--r-- | pyload/utils/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py index 13567f1a2..22f92222e 100644 --- a/pyload/utils/__init__.py +++ b/pyload/utils/__init__.py @@ -90,6 +90,8 @@ def save_join(*args): # Use fs_encode before accesing files on disk, it will encode the string properly if sys.getfilesystemencoding().startswith('ANSI'): + + def fs_encode(string): return safe_filename(encode(string)) @@ -206,6 +208,8 @@ def parseFileSize(string, unit=None): # returns bytes def lock(func): + + def new(*args): # print "Handler: %s args: %s" % (func, args[1:]) args[0].lock.acquire() |