#NEWLINE# def add_endmarker( self , token_stream ) : #NEWLINE# #INDENT# for tok in token_stream : #NEWLINE# #INDENT# ( yield end_marker ) #NEWLINE# #UNINDENT# end_marker = lex . LexToken ( ) #NEWLINE# end_marker . type = 'ENDMARKER' #NEWLINE# end_marker . value = None #NEWLINE# end_marker . lineno = ( - 1 ) #NEWLINE# end_marker . lexpos = ( - 1 ) #NEWLINE# end_marker . lexer = self . lexer #NEWLINE# ( yield end_marker )