Skip to content

Commit a0203bf

Browse files
committed
fix ipython integration
1 parent 389afe3 commit a0203bf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/pdbpp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def __init__(self, *args, **kwds):
354354

355355
@property
356356
def prompt(self):
357-
return self._prompt
357+
return self._pdbpp_prompt
358358

359359
@prompt.setter
360360
def prompt(self, value):
@@ -363,7 +363,7 @@ def prompt(self, value):
363363
m = re.match(r"^(.*\w)(\s*\W\s*)?$", value)
364364
if m:
365365
value = "{}++{}".format(*m.groups(""))
366-
self._prompt = value
366+
self._pdbpp_prompt = value
367367

368368
def _setup_streams(self, stdout):
369369
self.stdout = self.ensure_file_can_write_unicode(stdout)
@@ -1462,7 +1462,7 @@ def __init__(self_withcfg, *args, **kwargs):
14621462

14631463
prev_pdb = local.GLOBAL_PDB
14641464
p = PdbppWithConfig(self.completekey, self.stdin, self.stdout)
1465-
p._prompt = f"({self._prompt.strip()}) "
1465+
p._pdbpp_prompt = f"({self._pdbpp_prompt.strip()}) "
14661466
self.message("ENTERING RECURSIVE DEBUGGER")
14671467
self._flush_sticky_messages()
14681468
try:

testing/test_pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def test_prompt_setter():
386386
p.prompt = "# "
387387
assert p.prompt == "# "
388388
# Can be forced.
389-
p._prompt = "custom"
389+
p._pdbpp_prompt = "custom"
390390
assert p.prompt == "custom"
391391

392392

0 commit comments

Comments
 (0)