[Spambayes-checkins] spambayes/Outlook2000 config.py,1.22,1.23
Mark Hammond
mhammond at users.sourceforge.net
Tue Aug 19 07:31:37 EDT 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv30359
Modified Files:
config.py
Log Message:
Allow the config creator to have a different default set passed. This
is likely temporary until the wizard settles down.
Index: config.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/config.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** config.py 12 Aug 2003 02:36:22 -0000 1.22
--- config.py 19 Aug 2003 13:31:35 -0000 1.23
***************
*** 277,281 ****
raise AttributeError, "Options has no section '%s'" % attr
! def CreateConfig():
options = OptionsClass()
options.load_defaults(defaults)
--- 277,281 ----
raise AttributeError, "Options has no section '%s'" % attr
! def CreateConfig(defaults=defaults):
options = OptionsClass()
options.load_defaults(defaults)
***************
*** 304,308 ****
pass
# End of old pickle code.
!
if __name__=='__main__':
options = CreateConfig()
--- 304,308 ----
pass
# End of old pickle code.
!
if __name__=='__main__':
options = CreateConfig()
More information about the Spambayes-checkins
mailing list