DebugClients/Python/DebugClientBase.py

changeset 5651
982465f8389c
parent 5616
adcffadf4962
child 5657
0f4257c1abcb
diff -r 4c52f07c186e -r 982465f8389c DebugClients/Python/DebugClientBase.py
--- a/DebugClients/Python/DebugClientBase.py	Wed Mar 22 18:45:15 2017 +0100
+++ b/DebugClients/Python/DebugClientBase.py	Wed Mar 22 18:50:20 2017 +0100
@@ -1598,7 +1598,7 @@
             
         return varlist
     
-    def __formatVariablesList(self, keylist, dict_, scope, filterList=[],
+    def __formatVariablesList(self, keylist, dict_, scope, filterList=None,
                               formatSequences=False):
         """
         Private method to produce a formated variables list.
@@ -1625,6 +1625,8 @@
             variable entry is a tuple of three elements, the variable name,
             its type and value.
         """
+        filterList = [] if filterList is None else filterList[:]
+        
         varlist = []
         if scope:
             patternFilterObjects = self.globalsFilterObjects

eric ide

mercurial