Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27239/spambayes
Modified Files:
tokenizer.py
Log Message:
msg.get_type() is deprecated in favour of msg.get_content_type(), so switch to
that
to avoid DeprecationWarnings with Python 2.4 and the check_octets option.
Index: tokenizer.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/tokenizer.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** tokenizer.py 3 Apr 2005 23:30:54 -0000 1.35
--- tokenizer.py 26 May 2005 01:38:42 -0000 1.36
***************
*** 622,626 ****
"""Return a set of all msg parts with type 'application/octet-stream'."""
return Set(filter(lambda part:
! part.get_type() == 'application/octet-stream',
msg.walk()))
--- 622,626 ----
"""Return a set of all msg parts with type 'application/octet-stream'."""
return Set(filter(lambda part:
! part.get_content_type() == 'application/octet-stream',
msg.walk()))
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins