aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-dbutils/files
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-02-08 04:31:41 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-02-08 04:31:41 +0800
commit7ababb29ac7af78c70469121d5f67618c8df1aa4 (patch)
tree49d8a9d8cfdce76c2336235f0668b4fe6c847cba /databases/py-dbutils/files
parenta0e435dcfa3c02e17aa4cb059becddf421c8af51 (diff)
downloadfreebsd-ports-gnome-7ababb29ac7af78c70469121d5f67618c8df1aa4.tar.gz
freebsd-ports-gnome-7ababb29ac7af78c70469121d5f67618c8df1aa4.tar.zst
freebsd-ports-gnome-7ababb29ac7af78c70469121d5f67618c8df1aa4.zip
Update to 1.2
- Relax USES=python Changes: https://cito.github.io/DBUtils/RelNotes-1.2.html
Diffstat (limited to 'databases/py-dbutils/files')
-rw-r--r--databases/py-dbutils/files/patch-DBUtils-Examples-DBUtilsExample.py74
1 files changed, 74 insertions, 0 deletions
diff --git a/databases/py-dbutils/files/patch-DBUtils-Examples-DBUtilsExample.py b/databases/py-dbutils/files/patch-DBUtils-Examples-DBUtilsExample.py
new file mode 100644
index 000000000000..c491740f7768
--- /dev/null
+++ b/databases/py-dbutils/files/patch-DBUtils-Examples-DBUtilsExample.py
@@ -0,0 +1,74 @@
+--- DBUtils/Examples/DBUtilsExample.py.orig 2017-02-05 12:39:41 UTC
++++ DBUtils/Examples/DBUtilsExample.py
+@@ -147,7 +147,7 @@ class DBUtilsExample(ExamplePage):
+ else:
+ db.cursor().execute(ddl)
+ db.commit()
+- except self.dbapi.Error, error:
++ except self.dbapi.Error as error:
+ if self.dbapi_name != 'pg':
+ db.rollback()
+ self.outputMsg(error, True)
+@@ -173,7 +173,7 @@ class DBUtilsExample(ExamplePage):
+ else:
+ db.cursor().execute(cmd)
+ db.commit()
+- except self.dbapi.Error, error:
++ except self.dbapi.Error as error:
+ try:
+ if self.dbapi_name == 'pg':
+ db.query('end')
+@@ -198,7 +198,7 @@ class DBUtilsExample(ExamplePage):
+ cursor.execute(query)
+ result = cursor.fetchall()
+ cursor.close()
+- except self.dbapi.Error, error:
++ except self.dbapi.Error as error:
+ self.outputMsg(error, True)
+ return
+ if not result:
+@@ -251,7 +251,7 @@ class DBUtilsExample(ExamplePage):
+ for cmd in cmds:
+ db.cursor().execute(cmd)
+ db.commit()
+- except self.dbapi.Error, error:
++ except self.dbapi.Error as error:
+ if self.dbapi_name == 'pg':
+ db.query('end')
+ else:
+@@ -275,7 +275,7 @@ class DBUtilsExample(ExamplePage):
+ cursor.execute(query)
+ result = cursor.fetchall()
+ cursor.close()
+- except self.dbapi.Error, error:
++ except self.dbapi.Error as error:
+ self.outputMsg(error, True)
+ return
+ if not result:
+@@ -335,7 +335,7 @@ class DBUtilsExample(ExamplePage):
+ else:
+ db.cursor().execute(cmd)
+ db.commit()
+- except self.dbapi.Error, error:
++ except self.dbapi.Error as error:
+ if self.dbapi_name == 'pg':
+ db.query('end')
+ else:
+@@ -359,7 +359,7 @@ class DBUtilsExample(ExamplePage):
+ cursor.execute(query)
+ result = cursor.fetchall()
+ cursor.close()
+- except self.dbapi.Error, error:
++ except self.dbapi.Error as error:
+ self.outputMsg(error, True)
+ return
+ if not result:
+@@ -422,7 +422,7 @@ class DBUtilsExample(ExamplePage):
+ db.cursor().execute(cmd)
+ cursor.close()
+ db.commit()
+- except self.dbapi.Error, error:
++ except self.dbapi.Error as error:
+ if self.dbapi_name == 'pg':
+ db.query('end')
+ else: