[Spambayes-checkins] spambayes/contrib nway.py,1.2,1.3

Tony Meyer anadelonbrin at users.sourceforge.net
Thu Sep 4 19:15:30 EDT 2003


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

Modified Files:
	nway.py 
Log Message:
Remove backwards compat code for options, and update all (I hope)
the remaining code that uses it.



Index: nway.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/contrib/nway.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** nway.py	13 Aug 2003 14:39:35 -0000	1.2
--- nway.py	5 Sep 2003 01:15:28 -0000	1.3
***************
*** 62,66 ****
          h = hammie.open(db, True, 'r')
          score = h.score(msg)
!         if score >= Options.options.spam_cutoff:
              msg["X-Spambayes-Classification"] = "%s; %.2f" % (tag, score)
              break
--- 62,66 ----
          h = hammie.open(db, True, 'r')
          score = h.score(msg)
!         if score >= Options.options["Categorization", "spam_cutoff"]:
              msg["X-Spambayes-Classification"] = "%s; %.2f" % (tag, score)
              break





More information about the Spambayes-checkins mailing list