mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Add canonic() function -- for brand new bdb.py feature.
This commit is contained in:
parent
14b2d30b11
commit
2e9e0dfca3
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ class Debugger(bdb.Bdb):
|
||||||
self.pyshell = pyshell
|
self.pyshell = pyshell
|
||||||
self.make_gui()
|
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):
|
def close(self, event=None):
|
||||||
if self.interacting:
|
if self.interacting:
|
||||||
self.top.bell()
|
self.top.bell()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue