[Python-checkins] python/dist/src/Lib httplib.py,1.87,1.88
montanaro at users.sourceforge.net
montanaro at users.sourceforge.net
Tue Sep 14 18:32:05 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26872/Lib
Modified Files:
httplib.py
Log Message:
Search from the end of the host/port combination to find the colon which
separates ip address from the port to accommodate ipv6 addresses.
Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- httplib.py 18 Aug 2004 12:46:25 -0000 1.87
+++ httplib.py 14 Sep 2004 16:32:01 -0000 1.88
@@ -524,7 +524,7 @@
def _set_hostport(self, host, port):
if port is None:
- i = host.find(':')
+ i = host.rfind(':')
if i >= 0:
try:
port = int(host[i+1:])
More information about the Python-checkins
mailing list