From d7575a738d420a564e7a22f3347ab8f4442110bb Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Fri, 3 Aug 2007 13:57:40 +0000 Subject: switch (simple) occurences of 'if len(x)' to 'if x': find . -name '*.py' |xargs perl -pi.bak -e 's/if len\((\S+)\):/if $1:/' && find . -name '*.bak' |xargs rm --- lib/sqlalchemy/databases/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index d4a2ac59f..e95951f4a 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -1136,7 +1136,7 @@ class MySQLDialect(ansisql.ANSIDialect): ssl[key[4:]] = opts[key] util.coerce_kw_type(ssl, key[4:], str) del opts[key] - if len(ssl): + if ssl: opts['ssl'] = ssl # FOUND_ROWS must be set in CLIENT_FLAGS to enable -- cgit v1.2.1