diff options
author | Guido van Rossum <guido@python.org> | 2001-11-29 02:50:15 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-11-29 02:50:15 +0000 |
commit | 847739c6dbbfdb572ac2ae69d7c220f85342248d (patch) | |
tree | c6f535ad66b4cd881e6e4d14b03ad78c91b373db /Lib/bdb.py | |
parent | 253af63b8fe307accc716d76377fe507dec4875e (diff) | |
download | cpython-847739c6dbbfdb572ac2ae69d7c220f85342248d.tar.gz |
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/bdb.py')
-rw-r--r-- | Lib/bdb.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py index 7326a72d55..29cba8039f 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -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) |