[Spambayes-checkins] spambayes/spambayes storage.py,1.4,1.5
Mark Hammond
mhammond at users.sourceforge.net
Mon Mar 3 21:42:24 EST 2003
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv6356
Modified Files:
storage.py
Log Message:
Remove unused 'wordcache' instance variable, and change '== None' to
'is None'
Index: storage.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/storage.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** storage.py 4 Mar 2003 05:41:04 -0000 1.4
--- storage.py 4 Mar 2003 05:42:22 -0000 1.5
***************
*** 134,138 ****
classifier.Classifier.__init__(self)
- self.wordcache = {}
self.statekey = "saved state"
self.mode = mode
--- 134,137 ----
***************
*** 175,179 ****
for key in self.wordinfo.keys():
val = self.wordinfo[key]
! if val == None:
del self.wordinfo[key]
try:
--- 174,178 ----
for key in self.wordinfo.keys():
val = self.wordinfo[key]
! if val is None:
del self.wordinfo[key]
try:
More information about the Spambayes-checkins
mailing list