def _readline_prompt(self): """ Prompt using the readline module (no pre-flush) :return: The command line """ sys.stdout.flush() return safe_input(self.__get_ps1())
def _readline_prompt(self): """ Prompt using the readline module (no pre-flush) :return: The command line """ sys.stdout.flush() return safe_input(self._shell.get_ps1())
def _normal_prompt(self): """ Flushes the prompt before requesting the input :return: The command line """ sys.stdout.write(self.__get_ps1()) sys.stdout.flush() return safe_input()
def _normal_prompt(self): """ Flushes the prompt before requesting the input :return: The command line """ sys.stdout.write(self._shell.get_ps1()) sys.stdout.flush() return safe_input()