Skip to content
Myr

fix failing test "test_prepare_unicode_url"

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

authored by Scott Sadler · committed by Scott Sadler · parent 6b58a35 · Browse files · 1 file+5 added−4 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+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:requests/models.py+5 added-4 removed
20 unmodified lines
21from .packages.urllib3.util import parse_url22from .packages.urllib3.exceptions import (23 DecodeError, ReadTimeoutError, ProtocolError)24from .exceptions import (25 HTTPError, RequestException, MissingSchema, InvalidURL, 26 ChunkedEncodingError, ContentDecodingError, ConnectionError, 25 HTTPError, RequestException, MissingSchema, InvalidURL,26 ChunkedEncodingError, ContentDecodingError, ConnectionError,27 StreamConsumedError)28from .utils import (29 guess_filename, get_auth_from_url, requote_uri,30 stream_decode_response_unicode, to_key_val_list, parse_header_links,
479 unmodified lines
510 self.headers['Cookie'] = cookie_header511512 def prepare_hooks(self, hooks):513 """Prepares the given hooks."""514 if hooks is not None:514 for event in hooks:515 self.register_hook(event, hooks[event])515 for event in hooks:516 self.register_hook(event, hooks[event])517518519class Response(object):520 """The :class:`Response <Response>` object, which contains a
314 unmodified lines