D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
blackhat.pw
:
/
kunden
/
usr
/
lib
/
python3
/
dist-packages
/
breezy
/
__pycache__
/
Filename :
textfile.cpython-313.pyc
back
Copy
� p��g� � �J � S r SSKJr SSKJr SSKJr SSKJr S r S r S rg )z:Utilities for distinguishing binary files from text files.� )�chain� )� BinaryFile)�IterableFile)� file_iteratorc � � U R S5 nSU; a [ 5 e[ [ U4[ U 5 5 5 $ )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 s; � � �*�*�T�"�K��+���l����{�n�m�E�.B�C�D�D� c �X � [ U 5 nSUR S5 ; a [ 5 eg)zaRaise 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 $ s+ � � �U��A��!�&�&��,���l�� r c �f � [ U S5 n[ U5 SSS5 g! , ( d f g= f)zvCheck 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 �"� 0N)�__doc__� itertoolsr �errorsr �iterablefiler �osutilsr r r r � r r �<module>r s'