Skip to content

Commit f2f94dc

Browse files
authored
Update cursors.py
1 parent 1f8bd53 commit f2f94dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MySQLdb/cursors.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ def callproc(self, procname, args=()):
350350

351351
db = self._get_db()
352352
if args:
353-
argFmt = '@_{0}_%d=%s'.format(procname)
354-
q = 'SET %s' % ','.join(argFmt % (index, db.literal(arg))
355-
for index, arg in enumerate(args))
353+
fmt = '@_{0}_%d=%s'.format(procname)
354+
q = 'SET %s' % ','.join(fmt % (index, db.literal(arg))
355+
for index, arg in enumerate(args))
356356
if isinstance(q, unicode):
357357
q = q.encode(db.encoding, 'surrogateescape')
358358
self._query(q)

0 commit comments

Comments
 (0)