def rlcomplete(self, text, state):
if state==<NUM_LIT:0>:<EOL><INDENT>self.line_buffer = line_buffer = self.readline.get_line_buffer()<EOL>cursor_pos = self.readline.get_endidx()<EOL>if not (self.dumb_terminal or line_buffer.strip()):<EOL><INDENT>self.readline.insert_text('<STR_LIT:\t>')<EOL>sys.stdout.flush()<EOL>return None<EOL><DEDENT>DEBUG = False<EOL>if DEBUG:<EOL><INDENT>try:<EOL><INDENT>self.complete(text, line_buffer, cursor_pos)<EOL><DEDENT>except:<EOL><INDENT>import traceback; traceback.print_exc()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.complete(text, line_buffer, cursor_pos)<EOL><DEDENT><DEDENT>try:<EOL><INDENT>return self.matches[state]<EOL><DEDENT>except IndexError:<EOL><INDENT>return None<EOL><DEDENT>
Return the state-th possible completion for 'text'.

        This is called successively with state == 0, 1, 2, ... until it
        returns None.  The completion should begin with 'text'.

        Parameters
        ----------
          text : string
            Text to perform the completion on.

          state : int
            Counter used by readline.