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 serhiy.storchaka
Recipients orsenthil, serhiy.storchaka
Date 2019-12-15.19:45:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There are several issues with urllib.request.proxy_bypass_environment:

1. Leading dots are ignored in the proxy list, but not in the checked hostname. So ".localhost" does not matches ".localhost" in the proxy list.

2. A single trailing \n in the checked hostname is ignored, so "localhost\n" passes the check if the proxy list contains "localhost". But "localhost\n\n" and "localhost " do not pass. This is an artifact of using $ in the regular expression.
Date User Action Args
2019-12-15 19:45:57serhiy.storchakasetrecipients: + serhiy.storchaka, orsenthil
2019-12-15 19:45:57serhiy.storchakasetmessageid: <>
2019-12-15 19:45:57serhiy.storchakalinkissue39057 messages
2019-12-15 19:45:57serhiy.storchakacreate