A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-February/051457.html below:

[Python-Dev] Re: python/dist/src/Lib rfc822.py,1.78,1.79

[Python-Dev] Re: python/dist/src/Lib rfc822.py,1.78,1.79 [Python-Dev] Re: python/dist/src/Lib rfc822.py,1.78,1.79Fredrik Lundh fredrik at pythonware.com
Tue Feb 8 09:43:13 CET 2005
rhettinger at users.sourceforge.net wrote:

> @@ -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)

</F> 



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4