spambayes/spambayes OptionsClass.py, 1.28, 1.29

"Tony Meyer" <[email protected]> Tue, 15 Nov 2005 01:28:10 +0100 (CET)
Newsgroups gmane.mail.spam.spambayes.cvs
Message-ID <[email protected]>
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)