Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/requests/packages.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 import sys | |
2 | |
3 # This code exists for backwards compatibility reasons. | |
4 # I don't like it either. Just look the other way. :) | |
5 | |
6 for 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] | |
13 | |
14 # Kinda cool, though, right? |