def get_input(self, more=False):
        """Prompt for code input."""
        received = None
        try:
            received = self.prompt.input(more)
        except KeyboardInterrupt:
            print()
            printerr("KeyboardInterrupt")
        except EOFError:
            print()
            self.exit_runner()
        else:
            if received.startswith(exit_chars):
                self.exit_runner()
                received = None
        return received
def get_input ( self , more = False ) : received = None try : received = self . prompt . input ( more ) except KeyboardInterrupt : print ( ) printerr ( "KeyboardInterrupt" ) except EOFError : print ( ) self . exit_runner ( ) else : if received . startswith ( exit_chars ) : self . exit_runner ( ) received = None return received
Prompt for code input.