Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e9e0df

Browse files
committed
Add canonic() function -- for brand new bdb.py feature.
1 parent 14b2d30 commit 2e9e0df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Tools/idle/Debugger.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ def __init__(self, pyshell):
1717
bdb.Bdb.__init__(self)
1818
self.pyshell = pyshell
1919
self.make_gui()
20+
21+
def canonic(self, filename):
22+
# Canonicalize filename -- called by Bdb
23+
return os.path.normcase(os.path.abspath(filename))
2024

2125
def close(self, event=None):
2226
if self.interacting:

0 commit comments

Comments
 (0)