[Spambayes-checkins] spambayes TestDriver.py,1.14,1.15
Anthony Baxter
anthonybaxter@users.sourceforge.net
Fri, 27 Sep 2002 01:36:06 -0700
Update of /cvsroot/spambayes/spambayes
In directory usw-pr-cvs1:/tmp/cvs-serv11761
Modified Files:
TestDriver.py
Log Message:
more mixed line endings.
Index: TestDriver.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/TestDriver.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** TestDriver.py 26 Sep 2002 01:10:29 -0000 1.14
--- TestDriver.py 27 Sep 2002 08:36:03 -0000 1.15
***************
*** 207,218 ****
if options.show_histograms:
printhist("all runs:", self.global_ham_hist, self.global_spam_hist)
!
! if options.save_histogram_pickles:
! for f, h in (('ham', self.global_ham_hist), ('spam', self.global_spam_hist)):
! fname = "%s_%shist.pik" % (options.pickle_basename, f)
! print " saving %s histogram pickle to %s" %(f, fname)
! fp = file(fname, 'wb')
! pickle.dump(h, fp, 1)
! fp.close()
def test(self, ham, spam):
--- 207,219 ----
if options.show_histograms:
printhist("all runs:", self.global_ham_hist, self.global_spam_hist)
!
! if options.save_histogram_pickles:
! for f, h in (('ham', self.global_ham_hist),
! ('spam', self.global_spam_hist)):
! fname = "%s_%shist.pik" % (options.pickle_basename, f)
! print " saving %s histogram pickle to %s" %(f, fname)
! fp = file(fname, 'wb')
! pickle.dump(h, fp, 1)
! fp.close()
def test(self, ham, spam):