
    	l`                     H    d Z ddlZddlmZmZ  ej        e          Zd ZdS )zZ
binaryornot.check
-----------------

Main code for checking if a file is binary or text.
    N   )get_starting_chunkis_binary_stringc                     t                               dt                                 dg}|D ]}|                     |          r dS t	          |           }t          |          S )zd
    :param filename: File to check.
    :returns: True if it's a binary file, otherwise False.
    zis_binary: %(filename)rz.pycT)loggerdebuglocalsendswithr   r   )filenamebinary_extensionsextchunks       1lib/python3.11/site-packages/binaryornot/check.py	is_binaryr      su    
 LL*FHH555  
   S!! 	44	 x((EE"""    )	__doc__logginghelpersr   r   	getLogger__name__r   r    r   r   <module>r      s_      9 9 9 9 9 9 9 9 
	8	$	$# # # # #r   