[Python-Dev] Overriding stdlib http package
demianbrecht at gmail.com
Wed Jan 14 18:37:21 CET 2015
Hm, I /did/ try that but ran into issues. Swapping the custom finder for
the monkey patch now seems to work as expected though. Could be that I
was doing something else at the time that caused it not to work.
I'll keep running with that and will ping the thread if the issues
On 2015-01-14 8:54 AM, Antoine Pitrou wrote:
> What don't you simply monkeypatch sys.modules, e.g.:
> import myhttplib
> sys.modules['http'] = myhttplib
> or doesn't it work as desired?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the Python-Dev