JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrJFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr3 tX@s8ddlmZmZddlmZddlmZmZddZdS))PY2PY3)UniversalDetector) __version__VERSIONcCsHt|ts0t|ts(tdjt|nt|}t}|j||jS)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 TypeErrorformattyperZfeedclose)Zbyte_strZdetectorr/usr/lib/python3.6/__init__.pydetects   rN) compatrrZuniversaldetectorrversionrrrrrrrs