]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport gvanrossum's checkin of
authorMichael W. Hudson <mwh@python.net>
Thu, 28 Feb 2002 10:00:34 +0000 (10:00 +0000)
committerMichael W. Hudson <mwh@python.net>
Thu, 28 Feb 2002 10:00:34 +0000 (10:00 +0000)
    revision 1.35 of bdb.py

date: 2002/02/25 23:23:24;  author: gvanrossum;  state: Exp;  lines: +1 -0
canonic(): Fix by Edward K Ream to make breakpoints work better on
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 29cba8039f587e5c0cb84f12a7a9fade8a475350..f5fcb42599034cd61396232cbf5030c8204833e0 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