[Pythonmac-SIG] Does urllib.getproxies() work in 2.4/2.5 on Mac?

Ronald Oussoren ronaldoussoren at mac.com
Sun Aug 19 09:50:11 CEST 2007


On 18 Aug, 2007, at 23:12, Bill Janssen wrote:

> I noticed that with the system Python 2.3.5 on OS X 10.4, the
> automatic proxy setting doesn't work for urlopen().  It's because the
> code in urllib.py expects os.name() to return 'mac', and instead it
> returns 'posix'.
>
> Is this fixed in later versions of Python, anyone know?  You can test
> by calling "urllib.getproxies()" and seeing if it returns your
> proxysettings.

python2.5 checks for sys.platform == 'darwin' and should therefore do  
the right thing.

Ronald

>
>
> Bill
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3562 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20070819/024b7da2/attachment.bin 


More information about the Pythonmac-SIG mailing list