From f2f94dcddeddbcd0b458873f6166b5d1dea23ba0 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Thu, 15 Mar 2018 18:44:22 +0900 Subject: [PATCH] Update cursors.py --- MySQLdb/cursors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MySQLdb/cursors.py b/MySQLdb/cursors.py index b363293..bc1334b 100644 --- a/MySQLdb/cursors.py +++ b/MySQLdb/cursors.py @@ -350,9 +350,9 @@ class BaseCursor(object): db = self._get_db() if args: - argFmt = '@_{0}_%d=%s'.format(procname) - q = 'SET %s' % ','.join(argFmt % (index, db.literal(arg)) - for index, arg in enumerate(args)) + fmt = '@_{0}_%d=%s'.format(procname) + q = 'SET %s' % ','.join(fmt % (index, db.literal(arg)) + for index, arg in enumerate(args)) if isinstance(q, unicode): q = q.encode(db.encoding, 'surrogateescape') self._query(q)