DebugClients/Python/DebugClientBase.py

branch
5_2_x
changeset 1707
033317caabaf
parent 1606
446515c955f6
child 1727
9355815a4403
--- a/DebugClients/Python/DebugClientBase.py	Sun Mar 04 18:15:40 2012 +0100
+++ b/DebugClients/Python/DebugClientBase.py	Fri Mar 16 17:33:48 2012 +0100
@@ -207,7 +207,7 @@
         self.localsFilterObjects = []
 
         self.pendingResponse = DebugProtocol.ResponseOK
-        self.fncache = {}
+        self._fncache = {}
         self.dircache = []
         self.inRawMode = 0
         self.mainProcStr = None     # used for the passive mode
@@ -469,7 +469,7 @@
                 return
 
             if cmd == DebugProtocol.RequestLoad:
-                self.fncache = {}
+                self._fncache = {}
                 self.dircache = []
                 sys.argv = []
                 wd, fn, args, tracePython = arg.split('|')
@@ -1118,8 +1118,8 @@
             return fn
 
         # Check the cache.
-        if fn in self.fncache:
-            return self.fncache[fn]
+        if fn in self._fncache:
+            return self._fncache[fn]
 
         # Search sys.path.
         for p in sys.path:
@@ -1127,7 +1127,7 @@
             nafn = os.path.normcase(afn)
 
             if os.path.exists(nafn):
-                self.fncache[fn] = afn
+                self._fncache[fn] = afn
                 d = os.path.dirname(afn)
                 if (d not in sys.path) and (d not in self.dircache):
                     self.dircache.append(d)
@@ -1139,7 +1139,7 @@
             nafn = os.path.normcase(afn)
             
             if os.path.exists(nafn):
-                self.fncache[fn] = afn
+                self._fncache[fn] = afn
                 return afn
                 
         # Nothing found.
@@ -1736,7 +1736,7 @@
         self.__interact()
         
         # setup the debugger variables
-        self.fncache = {}
+        self._fncache = {}
         self.dircache = []
         self.mainFrame = None
         self.inRawMode = 0
@@ -1775,7 +1775,7 @@
         remoteAddress = self.__resolveHost(host)
         self.connectDebugger(port, remoteAddress, redirect)
         
-        self.fncache = {}
+        self._fncache = {}
         self.dircache = []
         sys.argv = progargs[:]
         sys.argv[0] = os.path.abspath(sys.argv[0])

eric ide

mercurial