diff options
author | Barry Warsaw <barry@python.org> | 2004-08-16 15:47:34 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2004-08-16 15:47:34 (GMT) |
commit | 06fa0420343c7e1f258610942e867918b580640f (patch) | |
tree | ad2ee3b137c57577e815771e96ac4515bcdac455 /Lib/email/Message.py | |
parent | d4ff2069068278cb61167e5b38de642980606018 (diff) | |
download | cpython-06fa0420343c7e1f258610942e867918b580640f.zip cpython-06fa0420343c7e1f258610942e867918b580640f.tar.gz cpython-06fa0420343c7e1f258610942e867918b580640f.tar.bz2 |
Test cases and fixes for bugs described in patch #873418: email/Message.py:
del_param fails when specifying a header.
Diffstat (limited to 'Lib/email/Message.py')
-rw-r--r-- | Lib/email/Message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/Message.py b/Lib/email/Message.py index dd8d864..2245f9b 100644 --- a/Lib/email/Message.py +++ b/Lib/email/Message.py @@ -664,7 +664,7 @@ class Message: if not self.has_key(header): return new_ctype = '' - for p, v in self.get_params(header, unquote=requote): + for p, v in self.get_params(header=header, unquote=requote): if p.lower() <> param.lower(): if not new_ctype: new_ctype = _formatparam(p, v, requote) @@ -700,7 +700,7 @@ class Message: if not self.has_key(header): self[header] = type return - params = self.get_params(header, unquote=requote) + params = self.get_params(header=header, unquote=requote) del self[header] self[header] = type # Skip the first param; it's the old type. |