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)