[Python-checkins] python/dist/src/Lib httplib.py,1.92,1.93

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Thu Oct 14 17:23:48 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14843

Modified Files:
	httplib.py 
Log Message:
SF bug #1046855:  httplib index out of range



Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- httplib.py	18 Sep 2004 09:03:49 -0000	1.92
+++ httplib.py	14 Oct 2004 15:23:38 -0000	1.93
@@ -593,7 +593,7 @@
                 host = host[:i]
             else:
                 port = self.default_port
-            if host[0] == '[' and host[-1] == ']':
+            if host and host[0] == '[' and host[-1] == ']':
                 host = host[1:-1]
         self.host = host
         self.port = port



More information about the Python-checkins mailing list