summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorJonathan Ellis <jbellis@gmail.com>2007-08-03 13:57:40 +0000
committerJonathan Ellis <jbellis@gmail.com>2007-08-03 13:57:40 +0000
commitd7575a738d420a564e7a22f3347ab8f4442110bb (patch)
tree6c830566e7af1aa47c91ff745503532a03f7a8cd /lib/sqlalchemy/databases/mysql.py
parent42812c06c182b236f491cb33315527a54fcba002 (diff)
downloadsqlalchemy-d7575a738d420a564e7a22f3347ab8f4442110bb.tar.gz
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
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
1 files changed, 1 insertions, 1 deletions
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