DebugClients/Python/DebugClientBase.py

changeset 5651
982465f8389c
parent 5616
adcffadf4962
child 5657
0f4257c1abcb
equal deleted inserted replaced
5650:4c52f07c186e 5651:982465f8389c
1596 varlist.append( 1596 varlist.append(
1597 ("address", "QHostAddress", "{0}".format(value.toString()))) 1597 ("address", "QHostAddress", "{0}".format(value.toString())))
1598 1598
1599 return varlist 1599 return varlist
1600 1600
1601 def __formatVariablesList(self, keylist, dict_, scope, filterList=[], 1601 def __formatVariablesList(self, keylist, dict_, scope, filterList=None,
1602 formatSequences=False): 1602 formatSequences=False):
1603 """ 1603 """
1604 Private method to produce a formated variables list. 1604 Private method to produce a formated variables list.
1605 1605
1606 The dictionary passed in to it is scanned. Variables are 1606 The dictionary passed in to it is scanned. Variables are
1623 number of items contained in these variables is returned. (boolean) 1623 number of items contained in these variables is returned. (boolean)
1624 @return A tuple consisting of a list of formatted variables. Each 1624 @return A tuple consisting of a list of formatted variables. Each
1625 variable entry is a tuple of three elements, the variable name, 1625 variable entry is a tuple of three elements, the variable name,
1626 its type and value. 1626 its type and value.
1627 """ 1627 """
1628 filterList = [] if filterList is None else filterList[:]
1629
1628 varlist = [] 1630 varlist = []
1629 if scope: 1631 if scope:
1630 patternFilterObjects = self.globalsFilterObjects 1632 patternFilterObjects = self.globalsFilterObjects
1631 else: 1633 else:
1632 patternFilterObjects = self.localsFilterObjects 1634 patternFilterObjects = self.localsFilterObjects

eric ide

mercurial