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
|
@ -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…
Reference in New Issue