Bazaar-NG doesn't work right with Python 2.4.2
Jan Hudec
bulb at ucw.cz
Tue Jan 17 06:30:31 GMT 2006
On Tue, Jan 17, 2006 at 03:34:28 +0100, Radoslaw Szkodzinski wrote:
> Jan Hudec wrote:
> > On Mon, Jan 16, 2006 at 21:05:25 +0100, Jan Hudec wrote:
> >> That might not, but the fact that the value does not include http:// seems
> >> to! Looking through the library code, there is a first regex match which
> >> strips out protocol and then another that gets the host part -- and that one
> >> requires the // to preceede it. So the http_proxy setting really has to be
> >> HTTP_PROXY="http://192.168.0.1:9191"
> >>
> >> Note that python recognizes both HTTP_PROXY and http_proxy, as well as any
> >> other capitalization, but some other programs may only accept the lowercase
> >> version. It is certainly more common.
> >
> > I forgot to add, that though it works if correctly set (and I indeed use
> > a http_proxy here without any problem), it still is a bug in python --
> > libraries like this should give error messages understandable without reading
> > the source. So I suggest you report this as a bug in python 2.4.2 urllib.
> >
>
> Both GNOME and wget accept the variable without protocol included.
> As God Intended. (TM)
Then they are both liberal in what they accept, which is right, but it
is certainly *NOT* AsGodIntended(tm). You can use different protocol for
accessing the proxy than the proxy uses to access the server -- it is
common to access ftp proxy with http, as it is for https proxy -- so
protocol is necessary part of the proxy specification.
> I don't need to report the bug. It's here:
> http://sourceforge.net/tracker/index.php?func=detail&aid=902075&group_id=5470&atid=105470
>
> Anyway, I'll fix the variable here and on other machines.
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060117/b58332cd/attachment.pgp
More information about the bazaar
mailing list