Skip to content
Myr

Revert "fix failing test "test_prepare_unicode_url""

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

This reverts commit cfd6e25749dd17c6b511043a6720b672f74029ed.

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

  • other:+4 added−5 removed

1 file+4 added−5 removed

modified:requests/models.py+4 added-5 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:515 for event in hooks:516 self.register_hook(event, hooks[event])514 for event in hooks:515 self.register_hook(event, hooks[event])516517518class Response(object):519 """The :class:`Response <Response>` object, which contains a
314 unmodified lines