]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Override bdb's canonic() method with a no-op: with bdb's version we couldn't edit...
authorJust van Rossum <just@letterror.com>
Wed, 20 Jun 2001 19:57:55 +0000 (19:57 +0000)
committerJust van Rossum <just@letterror.com>
Wed, 20 Jun 2001 19:57:55 +0000 (19:57 +0000)
Mac/Tools/IDE/PyDebugger.py

index c1f9b49f49c095b69da499ba5ef71fc96b7ceca0..22ab7a23c84db771c3dd92c60613194ee2f196a8 100644 (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