Cron DeprecationWarning with Python 2.4

Bug #266298 reported by Schoinobates
4
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

This is Debian bug #341699: http://bugs.debian.org/341699

The cron script senddigests spews:
 DeprecationWarning: get_type() deprecated; use
get_content_type()
   ctype = part.get_type(part.get_default_type())

Here's a patch that shuts up the warning, as you want
to keep Python 2.1 compatibility (get_content_type()
appeared in Python 2.2.2).

[http://sourceforge.net/tracker/index.php?func=detail&aid=1397214&group_id=103&atid=100103]

Revision history for this message
Schoinobates (schoinobates) wrote :

It seems I have forgotten to attach the patch.

Revision history for this message
Jakob Unterwurzacher (jakobunt) wrote :

Is this still an issue in Hardy?

Revision history for this message
Schoinobates (schoinobates) wrote : Re: [Bug 266298] Re: Cron DeprecationWarning with Python 2.4

On Tue, Feb 10, 2009 at 12:26:51PM -0000, Jakob Unterwurzacher wrote:

> Is this still an issue in Hardy?

I don't know. Ask a Ubuntu user. I filed that bug _upstream_, in
SourceForge, and it was automatically imported into Launchpad from
SourceForge. That's no reason to ask me Ubuntu-specific questions.

It was fixed in Debian; the reference to the Debian bug is right there
in the bug report; if you merged with Debian since then, it is
fixed. Else, you might have applied the same patch (or a patch with
equivalent effect) independently. If you did neither, then it is still
an issue.

--
Lionel

Revision history for this message
Mark Sapiro (msapiro) wrote :

The deprecation warning comes about in the first place in Debian/Ubuntu because Debian does not install the email package that ships with GNU Mailman in Mailman's pythonlib.

This all becomes moot in Mailman 2.1.12 as Python 2.4 is a minimum requirement and we also don't install an older email package for python 2.1 compatibility.

Changed in mailman:
status: New → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
milestone: 2.1-stable → 2.1.12
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.