File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ def execute(self, query, args=None):
190
190
191
191
if args is not None :
192
192
if isinstance (args , dict ):
193
- args = dict ((key , db .literal (item )) for key , item in args .iteritems ())
193
+ args = dict ((key , db .literal (item )) for key , item in args .items ())
194
194
else :
195
195
args = tuple (map (db .literal , args ))
196
196
if not PY2 and isinstance (query , bytes ):
@@ -261,7 +261,7 @@ def executemany(self, query, args):
261
261
for a in args :
262
262
if isinstance (a , dict ):
263
263
q .append (qv % dict ((key , db .literal (item ))
264
- for key , item in a .iteritems ()))
264
+ for key , item in a .items ()))
265
265
else :
266
266
q .append (qv % tuple ([db .literal (item ) for item in a ]))
267
267
except TypeError as msg :
You can’t perform that action at this time.
0 commit comments