]>
jfr.im git - dlqueue.git/blob - venv/lib/python3.11/site-packages/pip/_vendor/requests/compat.py
5 This module previously handled import compatibility issues
6 between Python 2 and Python 3. It remains for backwards
7 compatibility until the next major version.
10 from pip
._vendor
import chardet
19 _ver
= sys
.version_info
27 # Note: We've patched out simplejson support in pip because it prevents
28 # upgrading simplejson on Windows.
30 from json
import JSONDecodeError
32 # Keep OrderedDict for backwards compatibility.
33 from collections
import OrderedDict
34 from collections
.abc
import Callable
, Mapping
, MutableMapping
35 from http
import cookiejar
as cookielib
36 from http
.cookies
import Morsel
37 from io
import StringIO
42 from urllib
.parse
import (
54 from urllib
.request
import (
56 getproxies_environment
,
59 proxy_bypass_environment
,
65 basestring
= (str, bytes)
66 numeric_types
= (int, float)
67 integer_types
= (int,)