python 2.5 fix
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7635 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0b66b11ed3
commit
e0ccb7a9d1
11
net/pypcap/patches/001-python2_5.patch
Normal file
11
net/pypcap/patches/001-python2_5.patch
Normal file
@ -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):
|
Loading…
x
Reference in New Issue
Block a user