diff options
| author | Kenneth Reitz <me@kennethreitz.org> | 2017-05-26 22:50:13 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.org> | 2017-05-26 22:50:13 -0400 |
| commit | 6c41633cfd5634be42c9026f4c206fc8c2bf5d84 (patch) | |
| tree | 95e0d98f24da704d287b9a842f46a7dc16938cd3 | |
| parent | 6ef7298466076eb9e196ff430f9f1d2ddad44012 (diff) | |
| download | python-requests-6c41633cfd5634be42c9026f4c206fc8c2bf5d84.tar.gz | |
fix models.py
| -rw-r--r-- | requests/models.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/requests/models.py b/requests/models.py index cdc17563..1a896376 100644 --- a/requests/models.py +++ b/requests/models.py @@ -16,17 +16,18 @@ import sys # such as in Embedded Python. See https://github.com/kennethreitz/requests/issues/3578. import encodings.idna +from urllib3.fields import RequestField +from urllib3.filepost import encode_multipart_formdata +from urllib3.util import parse_url +from urllib3.exceptions import ( + DecodeError, ReadTimeoutError, ProtocolError, LocationParseError) + from io import UnsupportedOperation from .hooks import default_hooks from .structures import CaseInsensitiveDict from .auth import HTTPBasicAuth from .cookies import cookiejar_from_dict, get_cookie_header, _copy_cookie_jar -from .packages.urllib3.fields import RequestField -from .packages.urllib3.filepost import encode_multipart_formdata -from .packages.urllib3.util import parse_url -from .packages.urllib3.exceptions import ( - DecodeError, ReadTimeoutError, ProtocolError, LocationParseError) from .exceptions import ( HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError, ContentDecodingError, ConnectionError, StreamConsumedError) |
