summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/mlistrequest.py
diff options
context:
space:
mode:
authorbwarsaw2007-03-21 21:16:56 +0000
committerbwarsaw2007-03-21 21:16:56 +0000
commitcdefb7ba2792083a520f8dc40993a0f946ad3434 (patch)
tree9db25722807381a8bae8cf28e4354c4aa68ffb5d /Mailman/interfaces/mlistrequest.py
parentfc51f4c9de9751c03fb21394b393253e8c225453 (diff)
downloadmailman-cdefb7ba2792083a520f8dc40993a0f946ad3434.tar.gz
mailman-cdefb7ba2792083a520f8dc40993a0f946ad3434.tar.zst
mailman-cdefb7ba2792083a520f8dc40993a0f946ad3434.zip
A few style fixes based on commit reviews.
Switchboard.py - Use listname.encode('utf-8') to produce the necessary 8-bit string, instead of str(listname). Also update the preceding comment. senddigests.py - Remove an unnecessary import. Decorate.py - Remove a commented out section of code. - Remove some redundant local variables - Reorganize the section that's trying to find a usable encoding for the payload of the modified message. I don't think it really hurts much to try duplicate charsets when lcset == mcset, or when either == utf-8. Just go ahead and try them and let them fail. This simplifies the code. Also, try to get just the minimum necessary code under the UnicodeError. I think it's enough to catch the payload.encode() call.
Diffstat (limited to 'Mailman/interfaces/mlistrequest.py')
0 files changed, 0 insertions, 0 deletions