Fixed the last change for the Python3 backend.

Sun, 27 Nov 2011 19:38:09 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 27 Nov 2011 19:38:09 +0100
changeset 1471
af9e4f5a34b5
parent 1470
65af67c5b5c3
child 1474
1eaec11a0078

Fixed the last change for the Python3 backend.

DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
diff -r 65af67c5b5c3 -r af9e4f5a34b5 DebugClients/Python3/DebugClientBase.py
--- 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
@@ -1413,7 +1413,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:
@@ -1431,7 +1431,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:

eric ide

mercurial