Message94150
This may end up being just a documentation issue. If the environment
has http_proxy set, you do get a ProxyHandler automatically.
>>> import os
>>> os.environ['http_proxy'] = 'localhost'
>>> from urllib2 import build_opener
>>> build_opener().handlers
[<urllib2.ProxyHandler instance at 0x7fb664ec6e18>,
<urllib2.UnknownHandler instance at 0x7fb664eca050>,
<urllib2.HTTPHandler instance at 0x7fb664eca710>,
<urllib2.HTTPDefaultErrorHandler instance at 0x7fb664ecaa70>,
<urllib2.HTTPRedirectHandler instance at 0x7fb664ecad88>,
<urllib2.FTPHandler instance at 0x7fb664ecae60>, <urllib2.FileHandler
instance at 0x7fb664ecaf38>, <urllib2.HTTPSHandler instance at
0x7fb664ece3b0>, <urllib2.HTTPErrorProcessor instance at 0x7fb664ece128>] |
|
Date |
User |
Action |
Args |
2009-10-16 21:06:24 | barry | set | recipients:
+ barry |
2009-10-16 21:06:24 | barry | set | messageid: <1255727184.59.0.607428302179.issue7152@psf.upfronthosting.co.za> |
2009-10-16 21:06:23 | barry | link | issue7152 messages |
2009-10-16 21:06:23 | barry | create | |
|