def METHOD_NAME(self, source):
    source = source.rstrip() + '\n'
    ThreadedStream.push()
    prompt = self.more and '... ' or '>>> '
    try:
        source_to_eval = ''.join(self.buffer + [source])
        if code.InteractiveInterpreter.METHOD_NAME(self,
           source_to_eval, '<debugger>', 'single'):
            self.more = True
            self.buffer.append(source)
        else:
            self.more = False
            del self.buffer[:]
    finally:
        output = ThreadedStream.fetch()
    return prompt + source + output