§
    cÌcÏ  ã                   óL   — d Z ddlmZ ddlmZ ddlmZ ddlmZ d„ Z	d„ Z
d	„ Zd
S )z9Utilities for distinguishing binary files from text filesé    )Úchainé   )Ú
BinaryFile)ÚIterableFile)Úfile_iteratorc                 ó¦   — |                       d¦  «        }d|v rt          ¦   «         ‚t          t          |ft	          | ¦  «        ¦  «        ¦  «        S )z™Produce a file iterator that is guaranteed to be text, without seeking.
    BinaryFile is raised if the file contains a NUL in the first 1024 bytes.
    é   ó    )Úreadr   r   r   r   )ÚinputÚfirst_chunks     ú1/usr/lib/python3/dist-packages/breezy/textfile.pyÚ	text_filer      sL   € ð —*’*˜TÑ"Ô"€KØ�+ÐÐÝ‰lŒlÐÝ�˜{˜n­m¸EÑ.BÔ.BÑCÔCÑDÔDÐDó    c                 ón   — t          | ¦  «        }d|                     d¦  «        v rt          ¦   «         ‚dS )ziRaise BinaryFile if the supplied lines contain NULs.
    Only the first 1024 characters are checked.
    r
   r	   N)r   r   r   )ÚlinesÚfs     r   Úcheck_text_linesr   $   s8   € õ 	�UÑÔ€AØ�!—&’&˜‘,”,ÐÐÝ‰lŒlÐð Ðr   c                 óv   — t          | d¦  «        5 }t          |¦  «         ddd¦  «         dS # 1 swxY w Y   dS )z~Check whether the supplied path is a text, not binary file.
    Raise BinaryFile if a NUL occurs in the first 1024 bytes.
    ÚrbN)Úopenr   )Úpathr   s     r   Úcheck_text_pathr   -   s€   € õ 
ˆd�DÑ	Ô	ð ˜QÝ�!‰Œˆðð ð ñ ô ð ð ð ð ð ð ð øøøð ð ð ð ð ð s   ‘.®2µ2N)Ú__doc__Ú	itertoolsr   Úerrorsr   Úiterablefiler   Úosutilsr   r   r   r   © r   r   ú<module>r       s�   ðð" @Ð ?à Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð Ø &Ð &Ð &Ð &Ð &Ð &Ø "Ð "Ð "Ð "Ð "Ð "ðEð Eð Eðð ð ðð ð ð ð r   