� ��^c@sIddlmZmZddlmZddlmZmZd�ZdS(i(tPY2tPY3(tUniversalDetector(t __version__tVERSIONcCskt|t�sKt|t�s<tdjt|����qKt|�}nt�}|j|�|j�S(s� Detect the encoding of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray`` s4Expected object of type bytes or bytearray, got: {0}( t isinstancet bytearraytbytest TypeErrortformatttypeRtfeedtclose(tbyte_strtdetector((s1/tmp/pip-build-1THPZW/chardet/chardet/__init__.pytdetects   N( tcompatRRtuniversaldetectorRtversionRRR(((s1/tmp/pip-build-1THPZW/chardet/chardet/__init__.pyts