Forgot a self.

This commit is contained in:
Jeremy Fincher 2004-10-03 09:24:48 +00:00
parent 5e4a41533e
commit a73348f962

View File

@ -76,10 +76,10 @@ class PickleBayesDB(plugins.DbiChannelDB):
self.filename = filename
self.nickFilename = self.filename.replace('pickle', 'nick.pickle')
self.bayes = reverend.thomas.Bayes(tokenize)
if os.path.exists(filename):
self.bayes.load(filename)
if os.path.exists(self.filename):
self.bayes.load(self.filename)
self.nickBayes = reverend.thomas.Bayes(tokenize)
if os.path.exists(nickFilename):
if os.path.exists(self.nickFilename):
self.nickBayes.load(self.nickFilename)
def close(self):