Update conf.py

This commit is contained in:
Junaid Loonat 2016-04-25 23:21:46 +02:00
parent c211c60e52
commit 7be7b98e68

View File

@ -1190,10 +1190,10 @@ class HttpProxy(registry.String):
'http': v, 'http': v,
'https': v 'https': v
} }
proxyHandler = ProxyHandler(proxies) proxyHandler = ProxyHandler(proxies)
proxyOpenerDirector = build_opener(proxyHandler) proxyOpenerDirector = build_opener(proxyHandler)
install_opener(proxyOpenerDirector) install_opener(proxyOpenerDirector)
super(HttpProxy, self).setValue(v) super(HttpProxy, self).setValue(v)
registerGlobalValue(supybot.protocols.http, 'proxy', registerGlobalValue(supybot.protocols.http, 'proxy',
HttpProxy('', _("""Determines what proxy all HTTP requests should go HttpProxy('', _("""Determines what proxy all HTTP requests should go