Bazaar-NG doesn't work right with Python 2.4.2

Radoslaw Szkodzinski astralstorm at gorzow.mm.pl
Tue Jan 17 02:34:28 GMT 2006


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)

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.

-- 
GPG Key id:  0xD1F10BA2
Fingerprint: 96E2 304A B9C4 949A 10A0  9105 9543 0453 D1F1 0BA2

AstralStorm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060117/d59cc03d/attachment.pgp 


More information about the bazaar mailing list