[Spambayes-checkins] spambayes/pspam/pspam profile.py,1.1,1.2
Jeremy Hylton
jhylton@users.sourceforge.net
Mon Nov 4 21:25:56 2002
Update of /cvsroot/spambayes/spambayes/pspam/pspam
In directory usw-pr-cvs1:/tmp/cvs-serv18044
Modified Files:
profile.py
Log Message:
Use the same default spamprob as regular classifier.
Index: profile.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/pspam/pspam/profile.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** profile.py 4 Nov 2002 04:44:20 -0000 1.1
--- profile.py 4 Nov 2002 21:25:54 -0000 1.2
***************
*** 10,13 ****
--- 10,14 ----
from pspam.folder import Folder
+ from pspam.options import options
import os
***************
*** 36,40 ****
class WordInfo(Persistent):
! def __init__(self, atime, spamprob=None):
self.atime = atime
self.spamcount = self.hamcount = self.killcount = 0
--- 37,41 ----
class WordInfo(Persistent):
! def __init__(self, atime, spamprob=options.robinson_probability_x):
self.atime = atime
self.spamcount = self.hamcount = self.killcount = 0