[Spambayes-checkins] spambayes/spambayes storage.py,1.14,1.15
Mark Hammond
mhammond at users.sourceforge.net
Tue Jul 8 05:39:12 EDT 2003
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv22070
Modified Files:
storage.py
Log Message:
Fix [ 760062 ] Traceback untraining a single message - typo in assert.
We need a test suite!
Index: storage.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/storage.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** storage.py 1 Jul 2003 01:19:51 -0000 1.14
--- storage.py 8 Jul 2003 11:39:10 -0000 1.15
***************
*** 190,194 ****
self.db[key] = val.__getstate__()
elif flag is WORD_DELETED:
! assert word not in self.wordinfo, \
"Should not have a wordinfo for words flagged for delete"
# Word may be deleted before it was ever written.
--- 190,194 ----
self.db[key] = val.__getstate__()
elif flag is WORD_DELETED:
! assert key not in self.wordinfo, \
"Should not have a wordinfo for words flagged for delete"
# Word may be deleted before it was ever written.
More information about the Spambayes-checkins
mailing list