Product:
Search Type:

Mailman cronjob tasks show the following warning: "/var/lib/mailman/Mailman/Handlers/Scrubber.py:175: DeprecationWarning: get_type() deprecated; use get_content_type()"

Article ID: 3538 
Last Review: Dec,28 2007
APPLIES TO:
  • Plesk 8.x for Linux/Unix

SYMPTOMS

On Ubuntu 6.0.6 with python2.4 Mailman cronjob tasks return the following warning:
/var/lib/mailman/Mailman/Handlers/Scrubber.py:175: DeprecationWarning: get_type() deprecated; use get_content_type()
ctype = part.get_type(part.get_default_type())



CAUSE

Mailman uses the function that is deprecated in python2.4, so the warning is shown. This warning does not affect mailman functionality.


RESOLUTION

As solution you can install the patch from Ubuntu bug tracking system, see https://bugs.launchpad.net/ubuntu/+source/mailman/+bug/25933 for more information. To install the patch use:
# cd /var/lib/mailman/Mailman/Handlers
#wget --output-document patch.txt  http://launchpadlibrarian.net/1512549/patch
# patch -p3 < patch.txt

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields