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.

This commit is contained in:
Just van Rossum 2001-06-20 19:57:55 +00:00
parent 5c94ce58e7
commit d700d79a73
1 changed files with 5 additions and 0 deletions

View File

@ -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