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

Skip Montanaro montanaro at users.sourceforge.net
Fri Dec 5 16:23:37 EST 2003


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

Modified Files:
	spamcounts.py 
Log Message:
allow the user to see the 'saved state' token


Index: spamcounts.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/contrib/spamcounts.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** spamcounts.py	20 Nov 2003 02:50:03 -0000	1.2
--- spamcounts.py	5 Dec 2003 21:23:35 -0000	1.3
***************
*** 71,75 ****
          seen.add(t)
  
!         sc, hc = db.get(t, (0, 0))
          if sc == hc == 0:
              continue
--- 71,78 ----
          seen.add(t)
  
!         try:
!             sc, hc = db.get(t, (0, 0))
!         except ValueError:
!             _, sc, hc = db.get(t, (0, 0, 0))
          if sc == hc == 0:
              continue





More information about the Spambayes-checkins mailing list