Bug#341699: [Pkg-mailman-hackers] Bug#341699: Noisy cron script: DeprecationWarning: get_type() deprecated; use get_content_type()

Lionel Elie Mamane lionel at mamane.lu
Fri Dec 9 21:26:14 UTC 2005


tags 341699 +confirmed
thanks

On Fri, Dec 02, 2005 at 12:13:00PM +0100, Matthias Klose wrote:

> Subject: Re: Cron <list at foo> [ -x /usr/lib/mailman/cron/senddigests ] && /usr/lib/mailman/cron/senddigests
> Cron Daemon writes:
>> /var/lib/mailman/Mailman/Handlers/Scrubber.py:175: DeprecationWarning: get_type() deprecated; use get_content_type()
>>   ctype = part.get_type(part.get_default_type())

Hmm... I'm hesitating between just shutting up the DeprecationWarnings
and changing the code... Thanks for the bug report anyway.

Note to self: Using get_content_type() will be completely safe, it
does the same as part.get_type(part.get_default_type()) (fallback to
get_default_type()). It exists since Python 2.2.2. Thus it will break
backports to woody (we probably don't care).

-- 
Lionel




More information about the Pkg-mailman-hackers mailing list