]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
canonic(): Fix by Edward K Ream to make breakpoints work better on
authorGuido van Rossum <guido@python.org>
Mon, 25 Feb 2002 23:23:24 +0000 (23:23 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 25 Feb 2002 23:23:24 +0000 (23:23 +0000)
Windows: apply normcase() as well as abspath().  (Note: this isn't
needed to make IDLE work, but it's a good idea anyway.)

Bugfix candidate -- both 2.2.1 and 2.1.3.

Lib/bdb.py

index 9d5bd78c3746672aa91c6f476a9ae6413151a0e4..ccd729ceea7b7487cf2ac3eff1a1d02c7373b784 100644 (file)
@@ -28,6 +28,7 @@ class Bdb:
         canonic = self.fncache.get(filename)
         if not canonic:
             canonic = os.path.abspath(filename)
+            canonic = os.path.normcase(canonic)
             self.fncache[filename] = canonic
         return canonic