Skip to content
Myr

fix compat.py

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 1d31b36 · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:requests/compat.py+3 added-2 removed
6 unmodified lines
7This module handles import compatibility issues between Python 2 and8Python 3.9"""1011from .packages import chardet11import chardet1213import sys1415# -------
28 unmodified lines
44 from urllib2 import parse_http_list45 import cookielib46 from Cookie import Morsel47 from StringIO import StringIO48 from .packages.urllib3.packages.ordered_dict import OrderedDict4849 from urllib3.packages.ordered_dict import OrderedDict5051 builtin_str = str52 bytes = str53 str = unicode54 basestring = basestring
17 unmodified lines