[Spambayes-checkins] spambayes/spambayes OptionsClass.py, 1.28, 1.29

Tony Meyer anadelonbrin at users.sourceforge.net
Tue Nov 15 01:28:10 CET 2005


Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7260/spambayes

Modified Files:
	OptionsClass.py 
Log Message:
Handle setting notate options to nothing.

Index: OptionsClass.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/OptionsClass.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** OptionsClass.py	22 May 2005 03:32:56 -0000	1.28
--- OptionsClass.py	15 Nov 2005 00:28:07 -0000	1.29
***************
*** 689,693 ****
                                self.get("Headers",
                                         "header_unsure_string"))
!             return val in header_strings
          if self.is_valid(sect, opt, val):
              self._options[sect, opt.lower()].set(val)
--- 689,693 ----
                                self.get("Headers",
                                         "header_unsure_string"))
!             return val in header_strings or not val
          if self.is_valid(sect, opt, val):
              self._options[sect, opt.lower()].set(val)



More information about the Spambayes-checkins mailing list