From 080643e89af62013d70bb574cd54cf4876628515 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 11 Aug 2013 20:36:10 +0200 Subject: improved account list --- pyload/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyload/utils') 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): -- cgit v1.2.3