#NEWLINE# def skip_to( self , id ) : #NEWLINE# #INDENT# postings = self . postings #NEWLINE# i = self . i #NEWLINE# while ( ( i < len ( postings ) ) and ( postings [ i ] [ 0 ] < id ) ) : #NEWLINE# #INDENT# i += 1 #NEWLINE# #UNINDENT# if ( i < len ( postings ) ) : #NEWLINE# #INDENT# self . i = i #NEWLINE# self . id = postings [ i ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . id = None