'Called when an empty line is entered in response to the prompt.
If this method is not overridden, it repeats the last nonempty
command entered.'

def emptyline(self):

    if self.lastcmd:
        return self.onecmd(self.lastcmd)
