mirror of https://github.com/python/cpython.git
Add canonic() function -- for brand new bdb.py feature.
This commit is contained in:
parent
14b2d30b11
commit
2e9e0dfca3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue