U Ɛd_@s8ddlmZmZddlmZddlmZmZddZdS))PY2PY3)UniversalDetector) __version__VERSIONcCsHt|ts0t|ts(tdt|nt|}t}|||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 bytearraybytes TypeErrorformattyperfeedclose)byte_strdetectorrWC:\Users\aemmanux\AppData\Local\Temp\pip-target-bnng1y30\lib\python\chardet/__init__.pydetects   rN) compatrruniversaldetectorrversionrrrrrrrs