[Spambayes-checkins] spambayes/Outlook2000 tester.py,1.22,1.23
Skip Montanaro
montanaro at users.sourceforge.net
Tue Dec 23 23:08:41 EST 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv25027/Outlook2000
Modified Files:
tester.py
Log Message:
make state key a manifest constant - should have done this ages ago...
Index: tester.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/tester.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** tester.py 19 Dec 2003 06:28:55 -0000 1.22
--- tester.py 24 Dec 2003 04:08:38 -0000 1.23
***************
*** 19,22 ****
--- 19,24 ----
import threading
+ from spambayes.storage import STATE_KEY
+
import msgstore
***************
*** 71,75 ****
bsddb_error = bsddb.error
key = bayes.dbm.first()[0]
! if key not in ["saved state"]:
yield key, bayes._wordinfoget(key)
while True:
--- 73,77 ----
bsddb_error = bsddb.error
key = bayes.dbm.first()[0]
! if key != STATE_KEY:
yield key, bayes._wordinfoget(key)
while True:
***************
*** 80,84 ****
except bsddb_error:
break
! if key not in ["saved state"]:
yield key, bayes._wordinfoget(key)
--- 82,86 ----
except bsddb_error:
break
! if key != STATE_KEY:
yield key, bayes._wordinfoget(key)
More information about the Spambayes-checkins
mailing list