#NEWLINE# def __init__( self , file_obj , ignore_errors = False , reverse = False , rel_seek = None ) : #NEWLINE# #INDENT# self . _reverse = bool ( reverse ) #NEWLINE# self . _file_obj = file_obj #NEWLINE# self . ignore_errors = ignore_errors #NEWLINE# if ( rel_seek is None ) : #NEWLINE# #INDENT# if reverse : #NEWLINE# #INDENT# rel_seek = 1.0 #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( not ( ( - 1.0 ) < rel_seek < 1.0 ) ) : #NEWLINE# #INDENT# raise ValueError ( ( "'rel_seek' expected a float between -1.0 and 1.0, not %r" % rel_seek ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( rel_seek < 0 ) : #NEWLINE# #INDENT# rel_seek = ( 1.0 - reverse ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . _rel_seek = rel_seek #NEWLINE# self . _blocksize = 4096 #NEWLINE# if ( rel_seek is not None ) : #NEWLINE# #INDENT# self . _init_rel_seek ( ) #NEWLINE# #UNINDENT# if self . _reverse : #NEWLINE# #INDENT# self . _line_iter = reverse_iter_lines ( self . _file_obj , blocksize = self . _blocksize , preseek = False ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _line_iter = iter ( self . _file_obj )