[Spambayes-checkins] spambayes/spambayes hammie.py,1.12,1.13

Richie Hindle richiehindle at users.sourceforge.net
Wed Nov 26 18:01:27 EST 2003


Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv22175

Modified Files:
	hammie.py 
Log Message:
Sjoerd's improved version of patch 831388, applied here as well
as to message.py.


Index: hammie.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/hammie.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** hammie.py	25 Nov 2003 22:35:49 -0000	1.12
--- hammie.py	26 Nov 2003 23:01:24 -0000	1.13
***************
*** 120,124 ****
              self.train(msg, is_spam, True)
          basic_disp = disp
!         disp += ("; %."+str(options["Headers", "header_score_digits"])+"f") % prob
          if options["Headers", "header_score_logarithm"]:
              if prob<=0.005 and prob>0.0:
--- 120,124 ----
              self.train(msg, is_spam, True)
          basic_disp = disp
!         disp += "; %.*f" % (options["Headers", "header_score_digits"], prob)
          if options["Headers", "header_score_logarithm"]:
              if prob<=0.005 and prob>0.0:





More information about the Spambayes-checkins mailing list