summaryrefslogtreecommitdiff
path: root/MySQLdb
diff options
context:
space:
mode:
authorfarcepest <farcepest@gmail.com>2012-09-27 12:06:58 -0400
committerfarcepest <farcepest@gmail.com>2012-09-27 12:06:58 -0400
commit2b5b909529dcb19db3d647acd84887687f8f2dd8 (patch)
treeee50e4c5daa389770a9c21f9126c7f65b03e3bf5 /MySQLdb
parentd1b43681cfe61adf994e9cb4cd495556eb712c6e (diff)
downloadmysqldb1-2b5b909529dcb19db3d647acd84887687f8f2dd8.tar.gz
Revert raise exc as value statements to raise exc, value since it breaks Python < 2.6.
Diffstat (limited to 'MySQLdb')
-rw-r--r--MySQLdb/MySQLdb/cursors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/MySQLdb/MySQLdb/cursors.py b/MySQLdb/MySQLdb/cursors.py
index 53960ae..50614f9 100644
--- a/MySQLdb/MySQLdb/cursors.py
+++ b/MySQLdb/MySQLdb/cursors.py
@@ -166,7 +166,7 @@ class BaseCursor(object):
try:
r = None
r = self._query(query)
- except TypeError as m:
+ except TypeError, m:
if m.args[0] in ("not enough arguments for format string",
"not all arguments converted"):
self.messages.append((ProgrammingError, m.args[0]))
@@ -217,7 +217,7 @@ class BaseCursor(object):
qv = m.group(1)
try:
q = [ qv % db.literal(a) for a in args ]
- except TypeError as msg:
+ except TypeError, msg:
if msg.args[0] in ("not enough arguments for format string",
"not all arguments converted"):
self.errorhandler(self, ProgrammingError, msg.args[0])