summaryrefslogtreecommitdiff
path: root/databases/py-pgnotify/patches/patch-pgnotify.py
blob: d5bcd636ba55525da8c91d93e7bccafc3df0dcda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-pgnotify.py,v 1.1 2016/03/25 21:15:07 joerg Exp $

--- pgnotify.py.orig	2016-03-25 09:35:27.000000000 +0000
+++ pgnotify.py
@@ -99,9 +99,9 @@ class pgnotify:
                 else:
                     self.pgconn.query('unlisten "%s"' % self.event)
                     self.pgconn.query('unlisten "%s"' % self.stop)
-                    raise pgnotifyError, \
+                    raise pgnotifyError(
                         'listening for ("%s", "%s") but notified of "%s"' \
-                        % (self.event, self.stop, event)
+                        % (self.event, self.stop, event))