diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-11 20:36:10 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-11 20:36:10 +0200 |
commit | 080643e89af62013d70bb574cd54cf4876628515 (patch) | |
tree | e79e3bebe9175da613c4a339fc4ac3fa172ecced /pyload/utils | |
parent | another try to fix broken accounts (diff) | |
download | pyload-080643e89af62013d70bb574cd54cf4876628515.tar.xz |
improved account list
Diffstat (limited to 'pyload/utils')
-rw-r--r-- | pyload/utils/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py index 5d59b9cbf..bc4e27df4 100644 --- a/pyload/utils/__init__.py +++ b/pyload/utils/__init__.py @@ -212,7 +212,7 @@ def to_string(value): return str(value) if not isinstance(value, basestring) else value def to_bool(value): - if not isinstance(value, basestring): return value + if not isinstance(value, basestring): return True if value else False return True if value.lower() in ("1", "true", "on", "an", "yes") else False def to_int(string, default=0): |