aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers/Tagger.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@list.org>2008-12-01 23:25:33 -0500
committerBarry Warsaw <barry@list.org>2008-12-01 23:25:33 -0500
commit2da8819928e6b010eb6c9d34c71a4f9f0287af9b (patch)
tree7ad0054577c7e457a94ecec5cd55d0003c2c2f08 /Mailman/Handlers/Tagger.py
parent0e6f7c1fc99eb7e35c23695bca2c17e757baf514 (diff)
parentf579d5c290b80e00974e8c034f9d6dd697fcdfa6 (diff)
downloadmailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.tar.gz
mailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.tar.xz
mailman2-2da8819928e6b010eb6c9d34c71a4f9f0287af9b.zip
Merge Mark's changes to complete the Python 2.6 compatibility.
Diffstat (limited to 'Mailman/Handlers/Tagger.py')
-rw-r--r--Mailman/Handlers/Tagger.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Handlers/Tagger.py b/Mailman/Handlers/Tagger.py
index 65ead7f6..0d3ce497 100644
--- a/Mailman/Handlers/Tagger.py
+++ b/Mailman/Handlers/Tagger.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001,2002 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2008 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -69,11 +69,12 @@ def scanbody(msg, numlines=None):
# or if the outer type is multipart/alternative and there is a text/plain
# part. Anything else, and the body is ignored for header-scan purposes.
found = None
- if msg.get_type('text/plain') == 'text/plain':
+ if msg.get_content_type() == 'text/plain':
found = msg
- elif msg.is_multipart() and msg.get_type() == 'multipart/alternative':
+ elif (msg.is_multipart() and
+ msg.get_content_type() == 'multipart/alternative'):
for found in msg.get_payload():
- if found.get_type('text/plain') == 'text/plain':
+ if found.get_content_type() == 'text/plain':
break
else:
found = None