'Paste source code into the console.'

def pasteCode(self, source):

    self._moveCursorToInputLine()
    for line in interleave(source.splitlines(), itertools.repeat('\n')):
        if (line != '\n'):
            self.insertPlainText(line)
        else:
            self.write('\n')
            next(self.loop)
