summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-06-20 19:57:55 (GMT)
committerJust van Rossum <just@letterror.com>2001-06-20 19:57:55 (GMT)
commitd700d79a73be8e2af31c5adf8ec81457be1c32f3 (patch)
treed08ce5a03454517cc6e2760bdcd36b0a809f0982
parent5c94ce58e79f31966ee81dda0965bbe74e0d0cec (diff)
downloadcpython-d700d79a73be8e2af31c5adf8ec81457be1c32f3.zip
cpython-d700d79a73be8e2af31c5adf8ec81457be1c32f3.tar.gz
cpython-d700d79a73be8e2af31c5adf8ec81457be1c32f3.tar.bz2
Override bdb's canonic() method with a no-op: with bdb's version we couldn't edit breakpoints in file-less ("Untitled" script windows). Besides, we did't need it as we always use full path names anyway.
-rw-r--r--Mac/Tools/IDE/PyDebugger.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PyDebugger.py b/Mac/Tools/IDE/PyDebugger.py
index c1f9b49..22ab7a2 100644
--- a/Mac/Tools/IDE/PyDebugger.py
+++ b/Mac/Tools/IDE/PyDebugger.py
@@ -49,6 +49,11 @@ class Debugger(bdb.Bdb):
self.tracemagic = 0
self.laststacksel = None
+ def canonic(self, filename):
+ # override: the provided canonic() method breaks our
+ # file-less Untitled windows
+ return filename
+
def reset(self):
self.currentframe = None
self.file = None