[Spambayes-checkins] spambayes/Outlook2000/dialogs AsyncDialog.py, 1.4, 1.5

Mark Hammond mhammond at users.sourceforge.net
Sun Jul 20 17:47:44 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv29051

Modified Files:
	AsyncDialog.py 
Log Message:
*sob* - I can't believe this assertion is failing - the values are
constants in the source code!  How is it possible that:

assert (abs((.3+.6+.1)-1.0)) < 0.001

(or for the other branch, .9+.1) fails?


Index: AsyncDialog.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/AsyncDialog.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** AsyncDialog.py	15 May 2003 22:52:01 -0000	1.4
--- AsyncDialog.py	20 Jul 2003 23:47:41 -0000	1.5
***************
*** 43,47 ****
              start_pos += prop
              self.stages.append(stage)
!         assert(abs(start_pos-1.0)) < 0.001, "Proportions must add to 1.0"
  
      def _next_stage(self):
--- 43,48 ----
              start_pos += prop
              self.stages.append(stage)
!         assert (abs(start_pos-1.0)) < 0.001, \
!                "Proportions must add to 1.0 (%g,%r)" % (start_pos, stages)
  
      def _next_stage(self):





More information about the Spambayes-checkins mailing list