[Spambayes-checkins] spambayes Persistent.py,1.1.2.2,1.1.2.3
Tim Stone
timstone4@users.sourceforge.net
Mon Nov 25 05:00:18 2002
Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv19721
Modified Files:
Tag: hammie-playground
Persistent.py
Log Message:
Changed use of Verbose to __debug__ (I'm learning all the time)
Index: Persistent.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Persistent.py,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** Persistent.py 23 Nov 2002 23:57:22 -0000 1.1.2.2
--- Persistent.py 25 Nov 2002 05:00:16 -0000 1.1.2.3
***************
*** 157,161 ****
class DBDictClassifier(PersistentClassifier):
! '''Classifier object persisted in a WIDict'''
def __init__(self, db_name, mode='c'):
--- 157,161 ----
class DBDictClassifier(PersistentClassifier):
! '''Classifier object persisted in a DBDict'''
def __init__(self, db_name, mode='c'):
***************
*** 167,174 ****
def load(self):
! '''Load state from WIDict'''
if __debug__:
! print 'Loading state from',self.db_name,'WIDict'
self.wordinfo = dbdict.DBDict(self.db_name, self.mode,
--- 167,174 ----
def load(self):
! '''Load state from DBDict'''
if __debug__:
! print 'Loading state from',self.db_name,'DBDict'
self.wordinfo = dbdict.DBDict(self.db_name, self.mode,
***************
*** 194,198 ****
if __debug__:
! print 'Persisting',self.db_name,'state in WIDict'
self.wordinfo[self.statekey] = (self.get_nham(), self.get_nspam())
--- 194,198 ----
if __debug__:
! print 'Persisting',self.db_name,'state in DBDict'
self.wordinfo[self.statekey] = (self.get_nham(), self.get_nspam())
More information about the Spambayes-checkins
mailing list