diff options
author | Guillaume Bandet <gbandet@multiposting.fr> | 2013-11-05 11:01:22 +0100 |
---|---|---|
committer | Guillaume Bandet <gbandet@multiposting.fr> | 2013-11-05 11:01:22 +0100 |
commit | 8bef3359fb27b63cf608a6685a99ed77fa766e5a (patch) | |
tree | efd41a648f808c068f5313f6cef5d331dc564559 | |
parent | 87d1145c0d6ee4f5a8ecf6d5c62d2479b9cf27ea (diff) | |
download | mysqldb1-8bef3359fb27b63cf608a6685a99ed77fa766e5a.tar.gz |
Syntax fix for python 2.5 support.
-rw-r--r-- | MySQLdb/cursors.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MySQLdb/cursors.py b/MySQLdb/cursors.py index 8815b80..9797d4a 100644 --- a/MySQLdb/cursors.py +++ b/MySQLdb/cursors.py @@ -181,7 +181,8 @@ class BaseCursor(object): query = query.encode(db.unicode_literal.charset) if args is not None: if isinstance(args, dict): - query = query % {key: db.literal(item) for key, item in args.iteritems()} + query = query % dict((key, db.literal(item)) + for key, item in args.iteritems()) else: query = query % tuple([db.literal(item) for item in args]) try: |