[Spambayes-checkins] spambayes mailsort.py,1.3,1.4

Neil Schemenauer nascheme at users.sourceforge.net
Sun Jan 19 19:39:55 EST 2003


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

Modified Files:
	mailsort.py 
Log Message:
Argh, need to use has_key().


Index: mailsort.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/mailsort.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** mailsort.py	20 Jan 2003 03:18:45 -0000	1.3
--- mailsort.py	20 Jan 2003 03:39:52 -0000	1.4
***************
*** 29,33 ****
  
  DB_FILE = os.path.expanduser(DB_FILE)
! if not os.environ['BAYESCUSTOMIZE']:
      os.environ['BAYESCUSTOMIZE'] = os.path.expanduser(OPTION_FILE)
  
--- 29,33 ----
  
  DB_FILE = os.path.expanduser(DB_FILE)
! if not os.environ.has_key('BAYESCUSTOMIZE'):
      os.environ['BAYESCUSTOMIZE'] = os.path.expanduser(OPTION_FILE)
  





More information about the Spambayes-checkins mailing list