From 2e9e0dfca3b360f09183faf7db73c78e1ea27f3d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 1 Feb 1999 19:35:33 +0000 Subject: [PATCH] Add canonic() function -- for brand new bdb.py feature. --- Tools/idle/Debugger.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/idle/Debugger.py b/Tools/idle/Debugger.py index 36665acbd21..b085a1d6a32 100644 --- a/Tools/idle/Debugger.py +++ b/Tools/idle/Debugger.py @@ -17,6 +17,10 @@ def __init__(self, pyshell): 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: