Skip to content
Myr

Change module of internal references to to_native_str()

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

authored by Brian Bamsch · committed by Brian Bamsch · parent 3ac70de · Browse files · 3 files+6 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

3 files+6 added−4 removed

  • other:+6 added−4 removed

3 files+6 added−4 removed

modified:requests/auth.py+2 added-1 removed
15 unmodified lines
16from base64 import b64encode1718from .compat import urlparse, str19from .cookies import extract_cookies_to_jar20from .utils import parse_dict_header, to_native_string20from ._internal_utils import to_native_string21from .utils import parse_dict_header22from .status_codes import codes2324CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded'25CONTENT_TYPE_MULTI_PART = 'multipart/form-data'
228 unmodified lines
modified:requests/models.py+2 added-2 removed
27 unmodified lines
28 DecodeError, ReadTimeoutError, ProtocolError, LocationParseError)29from .exceptions import (30 HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError,31 ContentDecodingError, ConnectionError, StreamConsumedError)32from ._internal_utils import to_native_string33from .utils import (34 guess_filename, get_auth_from_url, requote_uri,35 stream_decode_response_unicode, to_key_val_list, parse_header_links,35 iter_slices, guess_json_utf, super_len, to_native_string,36 check_header_validity)36 iter_slices, guess_json_utf, super_len, check_header_validity)37from .compat import (38 cookielib, urlunparse, urlsplit, urlencode, str, bytes, StringIO,39 is_py2, chardet, builtin_str, basestring)40from .compat import json as complexjson
845 unmodified lines
modified:requests/sessions.py+2 added-1 removed
15 unmodified lines
16from .cookies import (17 cookiejar_from_dict, extract_cookies_to_jar, RequestsCookieJar, merge_cookies)18from .models import Request, PreparedRequest, DEFAULT_REDIRECT_LIMIT19from .hooks import default_hooks, dispatch_hook20from .utils import to_key_val_list, default_headers, to_native_string20from ._internal_utils import to_native_string21from .utils import to_key_val_list, default_headers22from .exceptions import (23 TooManyRedirects, InvalidSchema, ChunkedEncodingError, ContentDecodingError)24from .packages.urllib3._collections import RecentlyUsedContainer25from .structures import CaseInsensitiveDict
688 unmodified lines