Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/requests/packages.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import sys
3# This code exists for backwards compatibility reasons.
4# I don't like it either. Just look the other way. :)
6for package in ('urllib3', 'idna', 'chardet'):
7 locals()[package] = __import__(package)
8 # This traversal is apparently necessary such that the identities are
9 # preserved (requests.packages.urllib3.* is urllib3.*)
10 for mod in list(sys.modules):
11 if mod == package or mod.startswith(package + '.'):
12 sys.modules['requests.packages.' + mod] = sys.modules[mod]
14# Kinda cool, though, right?