diff options
author | Guido van Rossum <guido@python.org> | 2001-11-29 02:50:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-11-29 02:50:15 (GMT) |
commit | 42f5332f6de308c1d9b8f4df076aacf87d23ac11 (patch) | |
tree | 216c174cda7bfeab5a48a84ad59eba8881ccdfe7 /Lib | |
parent | d15f8bbe320811d8edaf869c91308679d246693f (diff) | |
download | cpython-42f5332f6de308c1d9b8f4df076aacf87d23ac11.zip cpython-42f5332f6de308c1d9b8f4df076aacf87d23ac11.tar.gz cpython-42f5332f6de308c1d9b8f4df076aacf87d23ac11.tar.bz2 |
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".
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/bdb.py | 2 |
1 files changed, 2 insertions, 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) |