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

Tony Meyer anadelonbrin at users.sourceforge.net
Fri Apr 18 18:02:16 EDT 2003


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

Modified Files:
	Options.py 
Log Message:
An extra backwards compatibility option.

Index: Options.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/Options.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** Options.py	18 Apr 2003 06:51:59 -0000	1.28
--- Options.py	19 Apr 2003 00:02:13 -0000	1.29
***************
*** 1234,1237 ****
--- 1234,1242 ----
                          value = converter(value)
                  self._options[section, option].set(value)
+                 # just for the moment, here's some more
+                 # backwards compatability - this will go
+                 # away very soon, so don't rely on this working
+                 old_name = section[0:1].lower() + section[1:] + '_' + option
+                 setattr(options, old_name, value) # ugly!
          if nerrors:
              raise ValueError("errors while parsing .ini file")





More information about the Spambayes-checkins mailing list