| Server IP : 217.160.0.244 / Your IP : 216.73.217.138 Web Server : Apache System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64 User : u100174116 ( 6746176) PHP Version : 8.5.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/breezy/__pycache__/ |
Upload File : |
�
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'