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/2004-September/049090.html below:

[Python-Dev] Re: python/dist/src/Lib httplib.py,1.88,1.89

[Python-Dev] Re: python/dist/src/Lib httplib.py,1.88,1.89 [Python-Dev] Re: python/dist/src/Lib httplib.py,1.88,1.89Fredrik Lundh fredrik at pythonware.com
Sun Sep 26 14:06:30 CEST 2004
> +++ httplib.py	14 Sep 2004 17:55:21 -0000	1.89
> @@ -525,7 +525,8 @@
>      def _set_hostport(self, host, port):
>          if port is None:
>              i = host.rfind(':')
> -            if i >= 0:
> +            j = host.rfind(']')         # ipv6 addresses have [...]
> +            if i > j:

one-line alternative:

		i = host.find(":", host.rfind("]"))

</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