Skip to content
Myr

Remove Python 2 mention on `chardet` behavior (#6204)

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

authored by David Cain · committed by GitHub · parent 7862556 · Browse files · 1 file+2 added−3 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+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:docs/user/advanced.rst+2 added-3 removed
715 unmodified lines
716``chardet`` is no longer a mandatory dependency. The ``chardet``717library is an LGPL-licenced dependency and some users of requests718cannot depend on mandatory LGPL-licensed dependencies.719720When you install ``request`` without specifying ``[use_chardet_on_py3]]`` extra,720When you install ``requests`` without specifying ``[use_chardet_on_py3]`` extra,721and ``chardet`` is not already installed, ``requests`` uses ``charset-normalizer``722(MIT-licensed) to guess the encoding. For Python 2, ``requests`` uses only723``chardet`` and is a mandatory dependency there.722(MIT-licensed) to guess the encoding.723724The only time Requests will not guess the encoding is if no explicit charset725is present in the HTTP headers **and** the ``Content-Type``726header contains ``text``. In this situation, `RFC 2616
373 unmodified lines