From: Oleg Broytman Date: Sun, 2 Mar 2014 19:33:50 +0000 (+0400) Subject: Add a few comments X-Git-Tag: v2.4.0~25 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=da30350f252527689adaa38118e6882adde64df4;p=mimedecode.git Add a few comments --- diff --git a/mimedecode.py b/mimedecode.py index 1e5b18b..8ea6922 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -102,11 +102,12 @@ def decode_headers(msg): for header in gopts.remove_all_params: value = msg[header] - if value is None: + if value is None: # No such header continue - if ';' not in value: + if ';' not in value: # There are no parameters continue - del msg[header] + del msg[header] # Delete all such headers + # Get the value without parameters and set it back msg[header] = value.split(';')[0].strip() for header, param in gopts.remove_header_params: