Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29697/spambayes
Modified Files:
message.py
Log Message:
Need to use has_key() and not "in" for Python 2.2 compat.
Index: message.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/message.py,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** message.py 29 Mar 2005 07:16:45 -0000 1.68
--- message.py 3 Jun 2005 03:34:42 -0000 1.69
***************
*** 126,130 ****
def get_statistics_start_date(self):
! if STATS_START_KEY in self.db:
return self.db[STATS_START_KEY]
else:
--- 126,130 ----
def get_statistics_start_date(self):
! if self.db.has_key(STATS_START_KEY):
return self.db[STATS_START_KEY]
else:
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins