Commit f3c5f5c0 authored by Guido van Rossum's avatar Guido van Rossum

After much hemming and hawing, we decided to roll back Fred's change.

It breaks Mailman, it was actually documented in the docstring, so it
was an intentional deviation from the usual del semantics.  Let's
document the original behavior in Doc/lib/librfc822.tex.
parent 9376b74c
...@@ -397,11 +397,11 @@ class Message: ...@@ -397,11 +397,11 @@ class Message:
def __delitem__(self, name): def __delitem__(self, name):
"""Delete all occurrences of a specific header, if it is present.""" """Delete all occurrences of a specific header, if it is present."""
lowname = string.lower(name) name = string.lower(name)
if not self.dict.has_key(lowname): if not self.dict.has_key(name):
raise KeyError, name return
del self.dict[lowname] del self.dict[name]
name = lowname + ':' name = name + ':'
n = len(name) n = len(name)
list = [] list = []
hit = 0 hit = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment