
    ,h                     6    d dl mZmZ d dlmZ d dlmZmZ d Zy)   )PY2PY3)UniversalDetector)__version__VERSIONc                     t        | t              s>t        | t              s#t        dj	                  t        |                   t        |       } 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typer   feedclose)byte_strdetectors     R/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/chardet/__init__.pydetectr      se     h	*(E* ""(&h"8: : !*H "HMM(>>    N)	compatr   r   universaldetectorr   versionr   r   r    r   r   <module>r      s   &  0 )r   