Skip to content
Myr

import cchardet if available

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

authored by asapo · committed by asapo · parent 1be2a55 · Browse files · 1 file+4 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

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:requests/compat.py+4 added-1 removed
87 unmodified lines
88 from urllib2 import parse_http_list89 import cookielib90 from Cookie import Morsel91 from StringIO import StringIO92 try:93 import cchardet as chardet94 except ImportError:92 from .packages import chardet95 from .packages import chardet9697 builtin_str = str98 bytes = str99 str = unicode
18 unmodified lines