diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-03-20 14:57:45 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-03-20 14:57:45 +0100 |
commit | 50d4df8b4d48b855bd18e9922355b7f3f2b4da4e (patch) | |
tree | 6301b05677a90cf86f131d5a7ae3f879b38e84d2 /module/utils | |
parent | renamed hooks to addons, new filemanager and database, many new api methods (diff) | |
download | pyload-50d4df8b4d48b855bd18e9922355b7f3f2b4da4e.tar.xz |
captcha decrypting for all plugin types, new interaction manager
Diffstat (limited to 'module/utils')
-rw-r--r-- | module/utils/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/utils/__init__.py b/module/utils/__init__.py index db43f330d..37e65c738 100644 --- a/module/utils/__init__.py +++ b/module/utils/__init__.py @@ -60,7 +60,7 @@ def compare_time(start, end): else: return False def to_list(value): - return value if type(value) == list else [value] + return value if type(value) == list else ([value] if value is not None else []) def formatSize(size): print "Deprecated formatSize, use format_size" |