#NEWLINE# def _init_rel_seek( self ) : #NEWLINE# #INDENT# "Sets the file object's position to the relative location set above." #NEWLINE# ( rs , fo ) = ( self . _rel_seek , self . _file_obj ) #NEWLINE# if ( rs == 0.0 ) : #NEWLINE# #INDENT# fo . seek ( 0 , os . SEEK_SET ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# fo . seek ( 0 , os . SEEK_END ) #NEWLINE# size = fo . tell ( ) #NEWLINE# if ( fo == 1.0 ) : #NEWLINE# #INDENT# self . _cur_pos = size #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# target = int ( ( size * rs ) ) #NEWLINE# fo . seek ( target , os . SEEK_SET ) #NEWLINE# self . _align_to_newline ( ) #NEWLINE# self . _cur_pos = fo . tell ( )