#NEWLINE# def get_following_input( inject_input_idx , input_events ) : #NEWLINE# #INDENT# ' Return the event following inject_input_index, or None if\n  inject_input_index is the last input ' #NEWLINE# if ( inject_input_idx < ( len ( input_events ) - 1 ) ) : #NEWLINE# #INDENT# return input_events [ ( inject_input_idx + 1 ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None