o
    žªj)  ã                   @  sL   d Z ddlmZ ddlmZ dZeedƒƒeeddƒƒ Zefddd„Z	dS )z"Stage 0: Binary content detection.é    )Úannotations)ÚDEFAULT_MAX_BYTESg{®Gáz„?é	   é   é    ÚdataÚbytesÚ	max_bytesÚintÚreturnÚboolc                 C  s@   | d|… } | s
dS |   dt¡}t| ƒt|ƒ }|t| ƒ tkS )zêReturn ``True`` if *data* appears to be binary (not text) content.

    :param data: The raw byte data to examine.
    :param max_bytes: Maximum number of bytes to scan.
    :returns: ``True`` if the data is classified as binary.
    NF)Ú	translateÚ_BINARY_DELETEÚlenÚ_BINARY_THRESHOLD)r   r	   ÚcleanÚbinary_count© r   ú]/var/www/html/fyndo/pharma/fyndo/venv/lib/python3.10/site-packages/chardet/pipeline/binary.pyÚ	is_binary   s   r   N)r   r   r	   r
   r   r   )
Ú__doc__Ú
__future__r   Úchardet._utilsr   r   r   Úranger   r   r   r   r   r   Ú<module>   s    