Sun, 27 Nov 2011 19:38:09 +0100
Fixed the last change for the Python3 backend.
DebugClients/Python3/DebugClientBase.py | file | annotate | diff | comparison | revisions |
--- a/DebugClients/Python3/DebugClientBase.py Sun Nov 27 19:30:27 2011 +0100 +++ b/DebugClients/Python3/DebugClientBase.py Sun Nov 27 19:38:09 2011 +0100 @@ -1406,7 +1406,7 @@ # this has to be in line with VariablesViewer.indicators elif rvar and rvar[0][-2:] in ["[]", "()", "{}"]: loc = {"udict" : udict} - exec('qvar = udict["{0!s}"][{1!s}]'.format(rvar[0][:-2], rvar[1]), + exec('qvar = udict["{0!s}"][{1!s}]'.format(rvar[0][:-2], rvar[1]), globals(), loc) qvar = loc["qvar"] else: @@ -1424,7 +1424,9 @@ else: # treatment for sequences and dictionaries if access: - exec "dict = dict%s" % access + loc = {"dict" : dict} + exec("dict = dict{0!s}".format(access), globals(), loc) + dict = loc["dict"] else: dict = dict[dictkeys[0]] if isDict: