Changeset: 61515ba0d64e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=61515ba0d64e
Modified Files:
clients/examples/python/sqlsample.py.in
Branch: Oct2012
Log Message:
sqlsample.py: fix syntax for Python 3
diffs (12 lines):
diff --git a/clients/examples/python/sqlsample.py.in
b/clients/examples/python/sqlsample.py.in
--- a/clients/examples/python/sqlsample.py.in
+++ b/clients/examples/python/sqlsample.py.in
@@ -33,7 +33,7 @@ print(cursor.fetchone())
# deliberately executing a wrong SQL statement:
try:
cursor.execute('( xyz 1);')
-except monetdb.sql.OperationalError, e:
+except monetdb.sql.OperationalError as e:
print(e)
cursor.execute('create table python_table (i smallint,s string);');
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list