Viewing File: /usr/lib/python3.6/site-packages/pip/_vendor/chardet/__pycache__/__init__.cpython-36.pyc

3

£éajã@s8ddlmZmZddlmZddlmZmZdd„ZdS)é)ÚPY2ÚPY3)ÚUniversalDetector)Ú__version__ÚVERSIONcCsHt|tƒs0t|tƒs(tdjt|ƒƒƒ‚nt|ƒ}tƒ}|j|ƒ|jƒS)z£
    Detect the encoding of the given byte string.

    :param byte_str:     The byte sequence to examine.
    :type byte_str:      ``bytes`` or ``bytearray``
    z4Expected object of type bytes or bytearray, got: {0})	Ú
isinstanceÚ	bytearrayÚbytesÚ	TypeErrorÚformatÚtyperZfeedÚclose)Zbyte_strZdetector©rú/usr/lib/python3.6/__init__.pyÚdetects


rN)	ÚcompatrrZuniversaldetectorrÚversionrrrrrrrÚ<module>s
Back to Directory File Manager