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 belopolsky
Recipients belopolsky, db3l, mark.dickinson, ned.deily, ronaldoussoren, vstinner
Date 2010-06-22.00:55:12
SpamBayes Score 0.00916579
Marked as misclassified No
Message-id <1277168114.95.0.904309770122.issue8455@psf.upfronthosting.co.za>
In-reply-to
Content
In fact, urllib.proxy_bypass() returns True for any simple host name (i.e. any string without '.' in it):

>>> proxy_bypass('xyz')
True
>>> proxy_bypass('')
True
>>> proxy_bypass('whatever')
True

I think the fix I am proposing makes sense regardless of platform because proxy_url is set up numerically:

proxy_url = "http://127.0.0.1:%d" % self.server.port

Maybe the above should be changed to

proxy_url = "%s:%d" % (self.URL, self.server.port)

once URL is changed to numerical form.
History
Date User Action Args
2010-06-22 00:55:15belopolskysetrecipients: + belopolsky, db3l, ronaldoussoren, mark.dickinson, vstinner, ned.deily
2010-06-22 00:55:14belopolskysetmessageid: <1277168114.95.0.904309770122.issue8455@psf.upfronthosting.co.za>
2010-06-22 00:55:13belopolskylinkissue8455 messages
2010-06-22 00:55:12belopolskycreate