[Spambayes-checkins] spambayes classifier.py,1.25,1.26

Neil Schemenauer nascheme@users.sourceforge.net
Mon, 30 Sep 2002 18:31:42 -0700


Update of /cvsroot/spambayes/spambayes
In directory usw-pr-cvs1:/tmp/cvs-serv27379

Modified Files:
	classifier.py 
Log Message:
Allow spamprob to be passed to the WordInfo constructor.


Index: classifier.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/classifier.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** classifier.py	29 Sep 2002 18:03:39 -0000	1.25
--- classifier.py	1 Oct 2002 01:31:40 -0000	1.26
***************
*** 57,64 ****
      # a word is no longer being used, it's just wasting space.
  
!     def __init__(self, atime):
          self.atime = atime
          self.spamcount = self.hamcount = self.killcount = 0
!         self.spamprob = None
  
      def __repr__(self):
--- 57,64 ----
      # a word is no longer being used, it's just wasting space.
  
!     def __init__(self, atime, spamprob=None):
          self.atime = atime
          self.spamcount = self.hamcount = self.killcount = 0
!         self.spamprob = spamprob
  
      def __repr__(self):