[Spambayes-checkins] spambayes/contrib spamcounts.py,1.4,1.5
Skip Montanaro
montanaro at users.sourceforge.net
Tue Dec 23 23:08:40 EST 2003
Update of /cvsroot/spambayes/spambayes/contrib
In directory sc8-pr-cvs1:/tmp/cvs-serv25027/contrib
Modified Files:
spamcounts.py
Log Message:
make state key a manifest constant - should have done this ages ago...
Index: spamcounts.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/contrib/spamcounts.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** spamcounts.py 12 Dec 2003 20:21:15 -0000 1.4
--- spamcounts.py 24 Dec 2003 04:08:38 -0000 1.5
***************
*** 27,30 ****
--- 27,31 ----
from spambayes.Options import options
from spambayes.tokenizer import tokenize
+ from spambayes.storage import STATE_KEY
prog = sys.argv[0]
***************
*** 61,65 ****
S = options["Classifier", "unknown_word_strength"]
x = options["Classifier", "unknown_word_prob"]
! _, ns, nh = db["saved state"]
writer = csv.writer(sys.stdout)
--- 62,66 ----
S = options["Classifier", "unknown_word_strength"]
x = options["Classifier", "unknown_word_prob"]
! _, ns, nh = db[STATE_KEY]
writer = csv.writer(sys.stdout)
More information about the Spambayes-checkins
mailing list