>> @@ -399,9 +393,8 @@
>>         del self[name] # Won't fail if it doesn't exist
>>         self.dict[name.lower()] = value
>>         text = name + ": " + value
>> -        lines = text.split("\n")
>> -        for line in lines:
>> -            self.headers.append(line + "\n")
>> +        self.headers.extend(text.splitlines(True))
>> +        self.headers.append('\n')
>
> and you're 100% sure that the change in how things are stored
> in headers won't affect any existing code?
>
> (the docstring says that headers contain a list of lines, which is no
> longer true)

and the module documentation says:

    Each line contains a trailing newline. The blank line terminating
    the headers is not contained in the list.

which is no longer true (unless I'm missing something here)

</F> 



_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to