Update of /cvsroot/tess/TheSpamSecretary
In directory sc8-pr-cvs1:/tmp/cvs-serv5901
Modified Files:
TheSpamSecretary.py
Log Message:
Removed old references to cPickle.
Index: TheSpamSecretary.py
===================================================================
RCS file: /cvsroot/tess/TheSpamSecretary/TheSpamSecretary.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** TheSpamSecretary.py 1 Apr 2003 05:02:36 -0000 1.12
--- TheSpamSecretary.py 12 Apr 2003 17:33:38 -0000 1.13
***************
*** 326,334 ****
self.goodDict = anydbm.open(self.goodDictPath, "c") # myUnpickler.load()
self.goodMessageCount = int(self.goodDict['TeSSFileCount']) # myUnpickler.load())
- except cPickle.PickleError:
- print("failed to load good dict from %s" % self.goodDictPath)
- self.logFile.write("PickleError failed to load good dict from %s\n" % self.goodDictPath)
- self.dictFailure = 1
- self.goodDict = {}
except (IOError, EOFError):
self.logFile.write("%s %s failed to load good dict from %s\n" % (sys.exc_type, sys.exc_value, self.goodDictPath))
--- 326,329 ----
***************
*** 343,350 ****
self.badDict = anydbm.open(self.badDictPath, "c") # myUnpickler.load()
self.badMessageCount = int(self.badDict['TeSSFileCount']) # myUnpickler.load())
- except cPickle.PickleError:
- self.logFile.write("PickleError failed to load bad dict from %s\n" % self.badDictPath)
- self.dictFailure = 1
- self.badDict = {}
except (IOError, EOFError):
self.logFile.write("%s %s failed to load bad dict from %s\n" % (sys.exc_type, sys.exc_value, self.badDictPath))
--- 338,341 ----
|