Fixed an issue in the debugger backends for Python and Python3 that caused files in exceptions been converted to all lowercase on case insensitive filesystems. 5_2_x

Fri, 10 Feb 2012 19:33:45 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 10 Feb 2012 19:33:45 +0100
branch
5_2_x
changeset 1606
446515c955f6
parent 1604
188004286415
child 1610
037b81858f5f
child 1611
9126ccf1b40f

Fixed an issue in the debugger backends for Python and Python3 that caused files in exceptions been converted to all lowercase on case insensitive filesystems.

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugClientBase.py	Mon Feb 06 19:59:32 2012 +0100
+++ b/DebugClients/Python/DebugClientBase.py	Fri Feb 10 19:33:45 2012 +0100
@@ -1124,9 +1124,9 @@
         # Search sys.path.
         for p in sys.path:
             afn = os.path.abspath(os.path.join(p, fn))
-            afn = os.path.normcase(afn)
+            nafn = os.path.normcase(afn)
 
-            if os.path.exists(afn):
+            if os.path.exists(nafn):
                 self.fncache[fn] = afn
                 d = os.path.dirname(afn)
                 if (d not in sys.path) and (d not in self.dircache):
@@ -1136,9 +1136,9 @@
         # Search the additional directory cache
         for p in self.dircache:
             afn = os.path.abspath(os.path.join(p, fn))
-            afn = os.path.normcase(afn)
+            nafn = os.path.normcase(afn)
             
-            if os.path.exists(afn):
+            if os.path.exists(nafn):
                 self.fncache[fn] = afn
                 return afn
                 
--- a/DebugClients/Python3/DebugClientBase.py	Mon Feb 06 19:59:32 2012 +0100
+++ b/DebugClients/Python3/DebugClientBase.py	Fri Feb 10 19:33:45 2012 +0100
@@ -1124,9 +1124,9 @@
         # Search sys.path.
         for p in sys.path:
             afn = os.path.abspath(os.path.join(p, fn))
-            afn = os.path.normcase(afn)
+            nafn = os.path.normcase(afn)
 
-            if os.path.exists(afn):
+            if os.path.exists(nafn):
                 self.fncache[fn] = afn
                 d = os.path.dirname(afn)
                 if (d not in sys.path) and (d not in self.dircache):
@@ -1136,9 +1136,9 @@
         # Search the additional directory cache
         for p in self.dircache:
             afn = os.path.abspath(os.path.join(p, fn))
-            afn = os.path.normcase(afn)
+            nafn = os.path.normcase(afn)
             
-            if os.path.exists(afn):
+            if os.path.exists(nafn):
                 self.fncache[fn] = afn
                 return afn
         

eric ide

mercurial