mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
canonic(): don't use abspath() for filenames looking like <...>; this
fixes the problem reported in SF bug #477023 (Jonathan Mark): "pdb: unexpected path confuses Emacs".
This commit is contained in:
parent
d15f8bbe32
commit
42f5332f6d
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ class Bdb:
|
|||
self.fncache = {}
|
||||
|
||||
def canonic(self, filename):
|
||||
if filename == "<" + filename[1:-1] + ">":
|
||||
return filename
|
||||
canonic = self.fncache.get(filename)
|
||||
if not canonic:
|
||||
canonic = os.path.abspath(filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue