This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Daniel Morrison
Recipients Daniel Morrison, docs@python, martin.panter, xiang.zhang
Date 2016-04-26.15:55:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461686108.65.0.576943769263.issue26864@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-04-26 15:55:08Daniel Morrisonsetrecipients: + Daniel Morrison, docs@python, martin.panter, xiang.zhang
2016-04-26 15:55:08Daniel Morrisonsetmessageid: <1461686108.65.0.576943769263.issue26864@psf.upfronthosting.co.za>
2016-04-26 15:55:08Daniel Morrisonlinkissue26864 messages
2016-04-26 15:55:08Daniel Morrisoncreate