[Python-checkins] CVS: python/dist/src/Lib bdb.py,1.32,1.33
Guido van Rossum
gvanrossum@users.sourceforge.net
Wed, 28 Nov 2001 18:50:18 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv15593
Modified Files:
bdb.py
Log Message:
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".
Index: bdb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bdb.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** bdb.py 2001/06/25 18:01:24 1.32
--- bdb.py 2001/11/29 02:50:15 1.33
***************
*** 24,27 ****
--- 24,29 ----
def canonic(self, filename):
+ if filename == "<" + filename[1:-1] + ">":
+ return filename
canonic = self.fncache.get(filename)
if not canonic: