[Spambayes-checkins] spambayes/scripts sb_mailsort.py,1.1,1.2
Tony Meyer
anadelonbrin at users.sourceforge.net
Wed Jul 14 12:05:51 CEST 2004
Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28718/scripts
Modified Files:
sb_mailsort.py
Log Message:
Fix [ 790757 ] signal handler created with wrong # of args
Note that I don't use sb_mailsort.py (does anyone?), but the documentation
for the signal module says that the second parameter should be a function that takes
two arguments, which it wasn't, so either the documenation or the script is wrong,
and it seems unlikely that it's the documentation.
Index: sb_mailsort.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_mailsort.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** sb_mailsort.py 5 Sep 2003 01:16:45 -0000 1.1
--- sb_mailsort.py 14 Jul 2004 10:05:48 -0000 1.2
***************
*** 100,104 ****
def filter_message(hamdir, spamdir):
! signal.signal(signal.SIGALRM, lambda s: sys.exit(1))
signal.alarm(24 * 60 * 60)
--- 100,104 ----
def filter_message(hamdir, spamdir):
! signal.signal(signal.SIGALRM, lambda s, f: sys.exit(1))
signal.alarm(24 * 60 * 60)
More information about the Spambayes-checkins
mailing list