summaryrefslogtreecommitdiffstats
path: root/Tools/idle/Debugger.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-02-01 19:35:33 (GMT)
committerGuido van Rossum <guido@python.org>1999-02-01 19:35:33 (GMT)
commit2e9e0dfca3b360f09183faf7db73c78e1ea27f3d (patch)
treeb8868d07f04edc60187837798bbc00e3d854695f /Tools/idle/Debugger.py
parent14b2d30b11544bc78374f4afe230fcd680a850b4 (diff)
downloadcpython-2e9e0dfca3b360f09183faf7db73c78e1ea27f3d.zip
cpython-2e9e0dfca3b360f09183faf7db73c78e1ea27f3d.tar.gz
cpython-2e9e0dfca3b360f09183faf7db73c78e1ea27f3d.tar.bz2
Add canonic() function -- for brand new bdb.py feature.
Diffstat (limited to 'Tools/idle/Debugger.py')
-rw-r--r--Tools/idle/Debugger.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/idle/Debugger.py b/Tools/idle/Debugger.py
index 36665ac..b085a1d 100644
--- a/Tools/idle/Debugger.py
+++ b/Tools/idle/Debugger.py
@@ -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: