Skip to content
Myr

chardet2

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 abf33ba · Browse files · 2 files+3 added−9 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+3 added−9 removed

  • other:+3 added−9 removed

2 files+3 added−9 removed

modified:requests/compat.py+2 added
83 unmodified lines
84 from urllib2 import parse_http_list85 import cookielib86 from Cookie import Morsel87 from StringIO import StringIO88 from .packages import chardet8990 bytes = str91 str = unicode92 basestring = basestring
5 unmodified lines
98 from urllib.request import parse_http_list99 from http import cookiejar as cookielib100 from http.cookies import Morsel101 from io import StringIO102 from .packages import chardet2 as chardet103104 str = str105 bytes = bytes106 basestring = (str,bytes)
1 unmodified line
modified:requests/models.py+1 added-9 removed
30 unmodified lines
31 stream_decode_response_unicode, get_netrc_auth, get_environ_proxies,32 DEFAULT_CA_BUNDLE_PATH)33from .compat import (34 cookielib, urlparse, urlunparse, urljoin, urlsplit, urlencode, str, bytes,35 StringIO, is_py2)35 StringIO, is_py2, chardet)3637# Import chardet if it is available.38try:39 import chardet40 # hush pyflakes41 chardet42except ImportError:43 chardet = None4437REDIRECT_STATI = (codes.moved, codes.found, codes.other, codes.temporary_moved)38CONTENT_CHUNK_SIZE = 10 * 10243940class Request(object):
794 unmodified lines