Skip to content
Myr

fix models.py

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 6ef7298 · Browse files · 1 file+6 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−5 removed

  • other:+6 added−5 removed

1 file+6 added−5 removed

modified:requests/models.py+6 added-5 removed
14 unmodified lines
15# Implicit import within threads may cause LookupError when standard library is in a ZIP,16# such as in Embedded Python. See https://github.com/kennethreitz/requests/issues/3578.17import encodings.idna1819from urllib3.fields import RequestField20from urllib3.filepost import encode_multipart_formdata21from urllib3.util import parse_url22from urllib3.exceptions import (23 DecodeError, ReadTimeoutError, ProtocolError, LocationParseError)2425from io import UnsupportedOperation26from .hooks import default_hooks27from .structures import CaseInsensitiveDict2829from .auth import HTTPBasicAuth30from .cookies import cookiejar_from_dict, get_cookie_header, _copy_cookie_jar25from .packages.urllib3.fields import RequestField26from .packages.urllib3.filepost import encode_multipart_formdata27from .packages.urllib3.util import parse_url28from .packages.urllib3.exceptions import (29 DecodeError, ReadTimeoutError, ProtocolError, LocationParseError)31from .exceptions import (32 HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError,33 ContentDecodingError, ConnectionError, StreamConsumedError)34from ._internal_utils import to_native_string, unicode_is_ascii
914 unmodified lines