#NEWLINE# def complete( self , text , state ) : #NEWLINE# #INDENT# if ( state == 0 ) : #NEWLINE# #INDENT# self . _populate_matches ( self ) #NEWLINE# #UNINDENT# if ( state < len ( self . matches ) ) : #NEWLINE# #INDENT# return self . matches [ state ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None