From 42f5332f6de308c1d9b8f4df076aacf87d23ac11 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 29 Nov 2001 02:50:15 +0000 Subject: [PATCH] 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". --- Lib/bdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/bdb.py b/Lib/bdb.py index 7326a72d553..29cba8039f5 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -23,6 +23,8 @@ def __init__(self): 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)