python 2.5 fix
authorTim Yardley <lst@openwrt.org>
Thu, 14 Jun 2007 19:45:12 +0000 (19:45 +0000)
committerTim Yardley <lst@openwrt.org>
Thu, 14 Jun 2007 19:45:12 +0000 (19:45 +0000)
SVN-Revision: 7635

net/pypcap/patches/001-python2_5.patch [new file with mode: 0644]

diff --git a/net/pypcap/patches/001-python2_5.patch b/net/pypcap/patches/001-python2_5.patch
new file mode 100644 (file)
index 0000000..d2bb3a0
--- /dev/null
@@ -0,0 +1,11 @@
+--- pypcap-1.1-old/pcap.pyx 2005-10-16 18:00:11.000000000 -0500
++++ pypcap-1.1/pcap.pyx     2007-06-12 11:11:41.000000000 -0500
+@@ -285,7 +285,7 @@
+                           <unsigned char *>&ctx)
+         if ctx.got_exc:
+             exc = sys.exc_info()
+-            raise exc[0], exc[1], exc[2]
++            raise OSError, "%s [%s]" % (exc[0], exc[1]), exc[2]
+         return n
+     def loop(self, callback, *args):