Re: httplib.InvalidURL: nonnumeric port: For characters in the proxypassword in URL

2006-11-13 Thread Sion Arrowsmith
Fredrik Lundh <[EMAIL PROTECTED]> wrote: urllib.quote > urllib2.quote > >>> urllib.quote >>> urllib2.quote Traceback (most recent call last): File "", line 1, in ? AttributeError: 'module' object has no attribute 'quote' >>> sys.version '2.4.1 (#2, May 5 2005, 11:32:06) \n[GCC 3.3.5

Re: httplib.InvalidURL: nonnumeric port: For characters in the proxypassword in URL

2006-11-13 Thread Phoe6
Fredrik Lundh wrote: Hi Fredrik, I apologize if I offended you or have shown any impatience. I shall try again: > oh, please. urllib.quote is a *function*; there's no way that calling that > function > from code written for urllib2 will affect anything. > > but you can access url

Re: httplib.InvalidURL: nonnumeric port: For characters in the proxypassword in URL

2006-11-13 Thread Fredrik Lundh
"Phoe6" wrote: >> if you want to prevent the URI parser from treating something as part of >> the URI, you need to quote it: >> >> pwd = urllib.quote(pwd, "") > > Tried this and did not work out. It ended up confusing urllib and > urllib2 objects. oh, please. urllib.quote is a *function*; th