Permalink
Browse files

raise syntax error at Python3

  • Loading branch information...
1 parent 11a8fba commit bc18de015b3f95247bee0baa8137f414738a9e11 @nakagami committed Nov 21, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 firebirdsql/fbcore.py
  2. +1 −1 firebirdsql/setup.py
  3. +1 −1 firebirdsql/tests.py
View
@@ -23,7 +23,7 @@ def bs(byte_array):
return ''.join([chr(c) for c in byte_array])
DEBUG = False
-__version__ = '0.3.0'
+__version__ = '0.3.1'
apilevel = '2.0'
threadsafety = 1
paramstyle = 'qmark'
@@ -526,7 +526,7 @@ def execute(self, query, params = []):
self.connection._op_execute(self.stmt_handle, params)
try:
(h, oid, buf) = self.connection._op_response()
- except OperationalError, o:
+ except OperationalError as o:
if 335544665 in o.gds_codes:
raise IntegrityError(o.message, o.gds_codes, o.sql_code)
self.rows = None
View
@@ -7,7 +7,7 @@
]
setup(name='firebirdsql',
- version='0.3.0',
+ version='0.3.1',
description = 'python dbapi for firebird rdbms.',
url='http://github.com/nakagami/pyfirebirdsql/',
classifiers=classifiers,
View
@@ -60,7 +60,7 @@
pass
try:
conn.cursor().execute("bad sql")
- except firebirdsql.OperationalError, e:
+ except firebirdsql.OperationalError as e:
assert e.sql_code == -104
cur = conn.cursor()

0 comments on commit bc18de0

Please sign in to comment.