[Spambayes-checkins] spambayes/spambayes storage.py,1.9,1.10
Tim Peters
tim_one at users.sourceforge.net
Thu Jun 26 18:38:58 EDT 2003
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv21893/spambayes
Modified Files:
storage.py
Log Message:
_wordinfoset(): Removed what looks like a superstitious test that record
isn't None (although it wasn't explicitly checking for None, and it's
unclear what it was checking for).
Index: storage.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/storage.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** storage.py 27 Jun 2003 00:31:59 -0000 1.9
--- storage.py 27 Jun 2003 00:38:56 -0000 1.10
***************
*** 231,235 ****
# as much as 60%!!! This also has the effect of reducing the time it
# takes to store the database
! if record and (record.spamcount+record.hamcount <= 1):
self.db[word] = record.__getstate__()
# Remove this word from the changed list (not that it should be
--- 231,235 ----
# as much as 60%!!! This also has the effect of reducing the time it
# takes to store the database
! if record.spamcount + record.hamcount <= 1:
self.db[word] = record.__getstate__()
# Remove this word from the changed list (not that it should be
More information about the Spambayes-checkins
mailing list