Add canonic() function -- for brand new bdb.py feature.
authorGuido van Rossum <guido@python.org>
Mon, 1 Feb 1999 19:35:33 +0000 (19:35 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Feb 1999 19:35:33 +0000 (19:35 +0000)
Tools/idle/Debugger.py

index 36665acbd21310a29fb9f0cb10a5033d9731c32f..b085a1d6a32f6bac58c678e88bc13add8402d9db 100644 (file)
@@ -17,6 +17,10 @@ class Debugger(bdb.Bdb):
         bdb.Bdb.__init__(self)
         self.pyshell = pyshell
         self.make_gui()
+    
+    def canonic(self, filename):
+        # Canonicalize filename -- called by Bdb
+        return os.path.normcase(os.path.abspath(filename))
 
     def close(self, event=None):
         if self.interacting: