[Spambayes-checkins] spambayes/spambayes OptionsClass.py,1.9,1.10

Mark Hammond mhammond at users.sourceforge.net
Thu Aug 21 07:07:01 EDT 2003


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

Modified Files:
	OptionsClass.py 
Log Message:
An empty 'allowed values' should allow an empty string (there is no
way to allow an option to be an arbitrary string otherwise)


Index: OptionsClass.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/OptionsClass.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** OptionsClass.py	19 Aug 2003 08:59:16 -0000	1.9
--- OptionsClass.py	21 Aug 2003 13:06:59 -0000	1.10
***************
*** 184,187 ****
--- 184,189 ----
      def _split_values(self, value):
          # do the regex mojo here
+         if not self.allowed_values:
+             return ('',)
          try:
              r = re.compile(self.allowed_values)





More information about the Spambayes-checkins mailing list