Message264313
I believe there was a misunderstanding.
While the environment variable name is handled in a case
insensitive way, the contents of the environment variable is not.
Please see some examples below:
>>> os.environ['no_proxy'] = 'example.com'
>>> urllib.request.proxy_bypass('EXAMPLE.com')
0
>>> urllib.request.proxy_bypass('example.com')
1
Also to clarify the meaning of suffix check:
>>> os.environ['no_proxy'] = 'example.com'
>>> urllib.request.proxy_bypass('myexample.com')
1
My apologies for my lack of clarity. |
|
Date |
User |
Action |
Args |
2016-04-26 15:55:08 | Daniel Morrison | set | recipients:
+ Daniel Morrison, docs@python, martin.panter, xiang.zhang |
2016-04-26 15:55:08 | Daniel Morrison | set | messageid: <1461686108.65.0.576943769263.issue26864@psf.upfronthosting.co.za> |
2016-04-26 15:55:08 | Daniel Morrison | link | issue26864 messages |
2016-04-26 15:55:08 | Daniel Morrison | create | |
|