diff options
author | Guido van Rossum <guido@python.org> | 1999-02-01 19:35:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-02-01 19:35:33 (GMT) |
commit | 2e9e0dfca3b360f09183faf7db73c78e1ea27f3d (patch) | |
tree | b8868d07f04edc60187837798bbc00e3d854695f | |
parent | 14b2d30b11544bc78374f4afe230fcd680a850b4 (diff) | |
download | cpython-2e9e0dfca3b360f09183faf7db73c78e1ea27f3d.zip cpython-2e9e0dfca3b360f09183faf7db73c78e1ea27f3d.tar.gz cpython-2e9e0dfca3b360f09183faf7db73c78e1ea27f3d.tar.bz2 |
Add canonic() function -- for brand new bdb.py feature.
-rw-r--r-- | Tools/idle/Debugger.py | 4 |
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: |