Closed
Closed
| stripped = len(origline) - len(line) | ||
| begidx = self.readline_wrapper.get_begidx() - stripped | ||
| endidx = self.readline_wrapper.get_endidx() - stripped | ||
| if begidx>0: |
| self.message("*exit from pdb interact command*") | ||
| else: | ||
| with self._enable_rlcompleter(ns): | ||
| console = _PdbInteractiveConsole(ns, message=self.message) |
| console = _PdbInteractiveConsole(ns, message=self.message) | ||
| if self.pyrepl_input is not None: | ||
| from _pyrepl.simple_interact import run_multiline_interactive_console | ||
| self.message("*pdb interact start*") |
| return [e for e in self.displaying.get(self.curframe, {}) | ||
| if e.startswith(text)] | ||
|
|
||
| def do_interact(self, arg): |
Comment on lines +357 to +361
| if not os.getenv("PYTHON_BASIC_REPL"): | ||
| from _pyrepl.main import CAN_USE_PYREPL | ||
|
|
||
| return CAN_USE_PYREPL | ||
| return False |
Member
Suggested change
| if not os.getenv("PYTHON_BASIC_REPL"): | |
| from _pyrepl.main import CAN_USE_PYREPL | |
| return CAN_USE_PYREPL | |
| return False | |
| if os.getenv('PYTHON_BASIC_REPL'): | |
| CAN_USE_PYREPL = False | |
| else: | |
| try: | |
| from _pyrepl.main import CAN_USE_PYREPL | |
| except ModuleNotFoundError: | |
| CAN_USE_PYREPL = False | |
| return CAN_USE_PYREPL |
ambv
mentioned this pull request
Merged