Add canonic() function -- for brand new bdb.py feature.

This commit is contained in:
Guido van Rossum 1999-02-01 19:35:33 +00:00
parent 14b2d30b11
commit 2e9e0dfca3
1 changed files with 4 additions and 0 deletions

View File

@ -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: