Skip to content
Myr

Update Comments & Magic Strings

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 f002b73 · Browse files · 2 files+11 added−1 removed
This commit

State

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

Diff stats

2 files+11 added−1 removed

  • other:+11 added−1 removed

2 files+11 added−1 removed

modified:requests/_internal_utils.py+10 added
1# -*- coding: utf-8 -*-23"""4requests._internal_utils5~~~~~~~~~~~~~~67Provides utility functions that are consumed internally by Requests8which depend on extremely few external helpers (such as compat)9"""1011from .compat import is_py2, builtin_str121314def to_native_string(string, encoding='ascii'):
13 unmodified lines
modified:requests/utils.py+1 added-1 removed
18 unmodified lines
19import warnings2021from . import __version__22from . import certs23# noinspection PyUnresolvedReferences23# to_native_string is unused here, but imported here for backwards compatibility24from ._internal_utils import to_native_string25from .compat import parse_http_list as _parse_list_header26from .compat import (quote, urlparse, bytes, str, OrderedDict, unquote,27 getproxies, proxy_bypass, urlunparse, basestring)
786 unmodified lines