DebugClients/Python/DebugClientBase.py

changeset 4543
2e6a880670e9
parent 4489
d0d6e4ad31bd
child 4563
881340f4bd0c
child 4605
25851e211cfa
equal deleted inserted replaced
4540:45627d092846 4543:2e6a880670e9
1427 while i < len(var): 1427 while i < len(var):
1428 if len(dict): 1428 if len(dict):
1429 udict = dict 1429 udict = dict
1430 ndict = {} 1430 ndict = {}
1431 # this has to be in line with VariablesViewer.indicators 1431 # this has to be in line with VariablesViewer.indicators
1432 if var[i][-2:] in ["[]", "()", "{}"]: 1432 if var[i][-2:] in ["[]", "()", "{}"]: # __IGNORE_WARNING__
1433 if i + 1 == len(var): 1433 if i + 1 == len(var):
1434 if var[i][:-2] == '...': 1434 if var[i][:-2] == '...':
1435 dictkeys = [var[i - 1]] 1435 dictkeys = [var[i - 1]]
1436 else: 1436 else:
1437 dictkeys = [var[i][:-2]] 1437 dictkeys = [var[i][:-2]]
1453 if oaccess: 1453 if oaccess:
1454 access = '%s[%s]' % (oaccess, var[i][:-2]) 1454 access = '%s[%s]' % (oaccess, var[i][:-2])
1455 oaccess = '' 1455 oaccess = ''
1456 else: 1456 else:
1457 access = '%s[%s]' % (access, var[i][:-2]) 1457 access = '%s[%s]' % (access, var[i][:-2])
1458 if var[i][-2:] == "{}": 1458 if var[i][-2:] == "{}": # __IGNORE_WARNING__
1459 isDict = 1 1459 isDict = 1
1460 break 1460 break
1461 else: 1461 else:
1462 if not access: 1462 if not access:
1463 if var[i][:-2] == '...': 1463 if var[i][:-2] == '...':
1565 elif ("sipThis" in dict.keys() and len(dict) == 1) or \ 1565 elif ("sipThis" in dict.keys() and len(dict) == 1) or \
1566 (len(dict) == 0 and len(udict) > 0): 1566 (len(dict) == 0 and len(udict) > 0):
1567 if access: 1567 if access:
1568 exec 'qvar = udict%s' % access 1568 exec 'qvar = udict%s' % access
1569 # this has to be in line with VariablesViewer.indicators 1569 # this has to be in line with VariablesViewer.indicators
1570 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: 1570 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: # __IGNORE_WARNING__
1571 exec 'qvar = udict["%s"][%s]' % (rvar[0][:-2], rvar[1]) 1571 exec 'qvar = udict["%s"][%s]' % (rvar[0][:-2], rvar[1])
1572 else: 1572 else:
1573 qvar = udict[var[-1]] 1573 qvar = udict[var[-1]]
1574 qvtype = ("%s" % type(qvar))[1:-1].split()[1][1:-1] 1574 qvtype = ("%s" % type(qvar))[1:-1].split()[1][1:-1]
1575 if qvtype.startswith(("PyQt4", "PyQt5")): 1575 if qvtype.startswith(("PyQt4", "PyQt5")):
1580 qtVariable = False 1580 qtVariable = False
1581 if len(dict) == 0 and len(udict) > 0: 1581 if len(dict) == 0 and len(udict) > 0:
1582 if access: 1582 if access:
1583 exec 'qvar = udict%s' % access 1583 exec 'qvar = udict%s' % access
1584 # this has to be in line with VariablesViewer.indicators 1584 # this has to be in line with VariablesViewer.indicators
1585 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: 1585 elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: # __IGNORE_WARNING__
1586 exec 'qvar = udict["%s"][%s]' % (rvar[0][:-2], rvar[1]) 1586 exec 'qvar = udict["%s"][%s]' % (rvar[0][:-2], rvar[1])
1587 else: 1587 else:
1588 qvar = udict[var[-1]] 1588 qvar = udict[var[-1]]
1589 qvtype = ("%s" % type(qvar))[1:-1].split()[1][1:-1] 1589 qvtype = ("%s" % type(qvar))[1:-1].split()[1][1:-1]
1590 if qvtype.startswith(("PyQt4", "PyQt5")): 1590 if qvtype.startswith(("PyQt4", "PyQt5")):
2217 sysPath.insert(0, '') 2217 sysPath.insert(0, '')
2218 return sysPath 2218 return sysPath
2219 2219
2220 # 2220 #
2221 # eflag: FileType = Python2 2221 # eflag: FileType = Python2
2222 # eflag: noqa = M601, M702

eric ide

mercurial