[Spambayes-checkins] spambayes/spambayes message.py,1.32,1.33

Richie Hindle richiehindle at users.sourceforge.net
Mon Aug 25 18:47:18 EDT 2003


Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv5839

Modified Files:
	message.py 
Log Message:
This now works again when there isn't a pre-existing message info DB.


Index: message.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/message.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** message.py	25 Aug 2003 09:00:37 -0000	1.32
--- message.py	26 Aug 2003 00:47:16 -0000	1.33
***************
*** 113,116 ****
--- 113,117 ----
          try:
              self.dbm = dbmstorage.open(self.db_name, self.mode)
+             self.db = shelve.Shelf(self.dbm)
          except dbmstorage.error:
              # This probably means that we don't have a dbm module
***************
*** 120,125 ****
                  print "Warning: no dbm modules available for MessageInfoDB"
              self.dbm = self.db = None
-         if self.dbm:
-             self.db = shelve.Shelf(self.dbm)
  
      def store(self):
--- 121,124 ----





More information about the Spambayes-checkins mailing list