-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ su d Z d d l m 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( s9 Utilities for distinguishing binary files from text filesi ( t absolute_import( t chain( t
BinaryFile( t IterableFile( t
file_iteratorc C@ sC | j d ƒ } d | k r' t ƒ ‚ n t t | f t | ƒ ƒ ƒ S( s™ 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.
i t ( t readR R R R ( t inputt first_chunk( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/textfile.pyt text_file s c C@ s1 t | ƒ } d | j d ƒ k r- t ƒ ‚ n d S( si Raise BinaryFile if the supplied lines contain NULs.
Only the first 1024 characters are checked.
R i N( R R R ( t linest f( ( s3 /usr/lib/python2.7/dist-packages/bzrlib/textfile.pyt check_text_lines&