spambayes/spambayes tokenizer.py,1.35,1.36

"Tony Meyer" <[email protected]> Wed, 25 May 2005 18:38:45 -0700
Newsgroups gmane.mail.spam.spambayes.cvs
Message-ID <[email protected]>
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()))