summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-11-29 02:50:15 (GMT)
committerGuido van Rossum <guido@python.org>2001-11-29 02:50:15 (GMT)
commit42f5332f6de308c1d9b8f4df076aacf87d23ac11 (patch)
tree216c174cda7bfeab5a48a84ad59eba8881ccdfe7 /Lib
parentd15f8bbe320811d8edaf869c91308679d246693f (diff)
downloadcpython-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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 7326a72..29cba80 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)