This module previously handled import compatibility issues
between Python 2and Python 3. It remains for backwards
compatibility until the next major version. """
import importlib import sys
# ------- # urllib3 # ------- from urllib3 import __version__ as urllib3_version
# Detect which major version of urllib3 is being used. try:
is_urllib3_1 = int(urllib3_version.split(".")[0]) == 1 except (TypeError, AttributeError): # If we can't discern a version, prefer old functionality.
is_urllib3_1 = True
# ------------------- # Character Detection # -------------------
def _resolve_char_detection(): """Find supported character detection libraries."""
chardet = None for lib in ("chardet", "charset_normalizer"): if chardet isNone: try:
chardet = importlib.import_module(lib) except ImportError: pass return chardet
if has_simplejson: from simplejson import JSONDecodeError else: from json import JSONDecodeError
# Keep OrderedDict for backwards compatibility. from collections import OrderedDict from collections.abc import Callable, Mapping, MutableMapping from http import cookiejar as cookielib from http.cookies import Morsel from io import StringIO
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.