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:
Guido van Rossum 2001-11-29 02:50:15 +00:00
parent d15f8bbe32
commit 42f5332f6d
1 changed files with 2 additions and 0 deletions

View File

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