[Patches] Problems with httplib.py
Fernando.SCamargo at mercantil.com.br
Fernando.SCamargo at mercantil.com.br
Mon Feb 16 12:50:30 EST 2004
Hello,
Im using up2date to update packages in fedora core 1, this distribution
uses python-2.2.3-7.
When i export the enviroment variable http_proxy=user:pass at proxy:3128 i
receive an error from httplib.py:
File "/usr/lib/python2.2/httplib.py", line 502, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: 'yteste at sudtec06:4128'
the function is this:
def _set_hostport(self, host, port):
if port is None:
i = host.find(':')
if i >= 0:
try:
port = int(host[i+1:])
except ValueError:
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
host = host[:i]
else:
port = self.default_port
self.host = host
self.port = port
I searched about this error at google and some people says that this
function int() doesnt work and i should use string.atoi(port),
i dont program in python and i would like some patch for this.
Help me please,
thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/patches/attachments/20040216/ab3023dc/attachment.html
More information about the Patches
mailing list