[Spambayes-checkins] spambayes/spambayes Stats.py,1.2,1.3

Skip Montanaro montanaro at users.sourceforge.net
Thu Dec 11 13:44:02 EST 2003


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

Modified Files:
	Stats.py 
Log Message:
conservative pychecker cleanup


Index: Stats.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/Stats.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Stats.py	6 Oct 2003 02:29:58 -0000	1.2
--- Stats.py	11 Dec 2003 18:44:00 -0000	1.3
***************
*** 88,93 ****
          perc_spam = 100.0 * self.cls_spam / self.total
          perc_unsure = 100.0 * self.cls_unsure / self.total
!         format_dict = dict(perc_spam=perc_spam, perc_ham=perc_ham,
!                            perc_unsure=perc_unsure, num_seen = self.total)
          format_dict.update(self.__dict__)
          push("SpamBayes has processed %(num_seen)d messages - " \
--- 88,97 ----
          perc_spam = 100.0 * self.cls_spam / self.total
          perc_unsure = 100.0 * self.cls_unsure / self.total
!         format_dict = {
!             'perc_spam': perc_spam,
!             'perc_ham': perc_ham,
!             'perc_unsure': perc_unsure,
!             'num_seen': self.total
!             }
          format_dict.update(self.__dict__)
          push("SpamBayes has processed %(num_seen)d messages - " \





More information about the Spambayes-checkins mailing list