[Spambayes-checkins] spambayes/spambayes UserInterface.py, 1.33,
1.34
Richie Hindle
richiehindle at users.sourceforge.net
Tue Nov 25 19:03:32 EST 2003
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv31368
Modified Files:
UserInterface.py
Log Message:
More robust code for parsing score headers - copes with the presence
of logarithms. Thanks to Mats Kindahl for the bug report and patch.
Index: UserInterface.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/UserInterface.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** UserInterface.py 25 Nov 2003 23:56:59 -0000 1.33
--- UserInterface.py 26 Nov 2003 00:03:30 -0000 1.34
***************
*** 272,276 ****
"evidence_header_name"]),
re.DOTALL)
! sc_re = re.compile("%s:(.*)\n" % \
re.escape(options["Headers", "score_header_name"]))
--- 272,276 ----
"evidence_header_name"]),
re.DOTALL)
! sc_re = re.compile("%s:\s*([\d.]+)" % \
re.escape(options["Headers", "score_header_name"]))
More information about the Spambayes-checkins
mailing list