From a8df174b75eeac6655cd849c19300aeebfbdcfd5 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 25 Mar 2016 21:15:07 +0000 Subject: Avoid outdated exception throwing syntax. --- databases/py-pgnotify/distinfo | 3 ++- databases/py-pgnotify/patches/patch-pgnotify.py | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 databases/py-pgnotify/patches/patch-pgnotify.py (limited to 'databases/py-pgnotify') diff --git a/databases/py-pgnotify/distinfo b/databases/py-pgnotify/distinfo index df933c2db12..1b9ecc8c95c 100644 --- a/databases/py-pgnotify/distinfo +++ b/databases/py-pgnotify/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.3 2015/11/03 01:56:28 agc Exp $ +$NetBSD: distinfo,v 1.4 2016/03/25 21:15:07 joerg Exp $ SHA1 (pgnotify-0.1.zip) = 6545a994077427b481c7fc9c511dc74f6106ae39 RMD160 (pgnotify-0.1.zip) = a48a7536a6edf330bdb1eb6b83be119ce4327e56 SHA512 (pgnotify-0.1.zip) = d1b27c89290476111a1751019b3c99af72a8904e4c56d363f0bff7ac334c8773b397ca3dd264eb26402489c8a3189181b8ad7966a312a7b4a918c87588f196e5 Size (pgnotify-0.1.zip) = 6148 bytes +SHA1 (patch-pgnotify.py) = 9b05f0685186833bad513bfd2cf0376133c9ae52 diff --git a/databases/py-pgnotify/patches/patch-pgnotify.py b/databases/py-pgnotify/patches/patch-pgnotify.py new file mode 100644 index 00000000000..d5bcd636ba5 --- /dev/null +++ b/databases/py-pgnotify/patches/patch-pgnotify.py @@ -0,0 +1,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)) + + + -- cgit v1.2.3