[Mailman-Developers] .lower() for older pythons

Barry A. Warsaw barry@zope.com
Thu, 11 Jul 2002 17:18:41 -0400


>>>>> "MD" == Matt Domsch <Matt_Domsch@Dell.com> writes:

    MD> Thanks for this update.  I've run across one problem.  In
    MD> Mailman/MailCommandHandler.py, ParseMailCommands function:

    | +        precedence = msg.get('precedence', '').lower()
    | +        ack = msg.get('x-ack', '').lower()

    MD> With my python (1.5.2-30 as in Red Hat Linux 7.1), this
    MD> generates lots of errors in mailman/logs/error:

Damn!  It's really getting hard to keep Python 1.5.2 in mind. :(

    MD> I believe the proper fix is:

    MD> + precedence = string.lower(msg.get('precedence', '')) + ack =
    MD> string.lower(msg.get('x-ack', ''))

    MD> instead.  With this, it works and doesn't generate those
    MD> errors.  I'm not on mailman-developers, so please cc me on any
    MD> replies.

You're exactly right.  Attached is a patch.  I guess I have to
generate a 2.0.13. :(

-Barry