Re: urllib2 disable proxy

2008-01-04 Thread Richie Hindle
Hi Dimitris, > I've been looking for a way to explicitly disable the use of proxies with > urllib2, no matter what the environment dictates. Unfortunately I can't find > a way [...] Would changing the environment work? Like this: >>> del os.environ['http_proxy'] >>> do_stuff_with_urllib2() -

Re: urllib2 disable proxy

2008-01-03 Thread Rob Wolfe
Dimitrios Apostolou <[EMAIL PROTECTED]> writes: > On Wed, 2 Jan 2008, Rob Wolfe wrote: > >> Dimitrios Apostolou <[EMAIL PROTECTED]> writes: >> >>> Hello list, >>> >>> I've been looking for a way to explicitly disable the use of proxies with >>> urllib2, no matter what the environment dictates. Unf

Re: urllib2 disable proxy

2008-01-03 Thread Dimitrios Apostolou
On Wed, 2 Jan 2008, Rob Wolfe wrote: > Dimitrios Apostolou <[EMAIL PROTECTED]> writes: > >> Hello list, >> >> I've been looking for a way to explicitly disable the use of proxies with >> urllib2, no matter what the environment dictates. Unfortunately I can't find >> a way in the documentation, a

Re: urllib2 disable proxy

2008-01-02 Thread Rob Wolfe
Dimitrios Apostolou <[EMAIL PROTECTED]> writes: > Hello list, > > I've been looking for a way to explicitly disable the use of proxies with > urllib2, no matter what the environment dictates. Unfortunately I can't find > a way in the documentation, and reading the source leads me to believe tha

urllib2 disable proxy

2008-01-02 Thread Dimitrios Apostolou
Hello list, I've been looking for a way to explicitly disable the use of proxies with urllib2, no matter what the environment dictates. Unfortunately I can't find a way in the documentation, and reading the source leads me to believe that something like the following does the job: req.set_pr