summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/OldStackViewer.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-06-16 03:32:24 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-06-16 03:32:24 (GMT)
commit0e3a57731b4b1ffbfae151cf23289bbd51148163 (patch)
tree5e80bf8895acc85720df9fd8aa99671a96587a80 /Lib/idlelib/OldStackViewer.py
parent04443027107e1d53efaf7a41546f65af45748fd7 (diff)
downloadcpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.zip
cpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.tar.gz
cpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.tar.bz2
Polish RemoteDebugger code.
Use a repr() on the subprocess side when fetching dict values for stack. The various dict entities are not needed by the debugger GUI, only their representation.
Diffstat (limited to 'Lib/idlelib/OldStackViewer.py')
-rw-r--r--Lib/idlelib/OldStackViewer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/idlelib/OldStackViewer.py b/Lib/idlelib/OldStackViewer.py
index 2fa4127..c3df5ff 100644
--- a/Lib/idlelib/OldStackViewer.py
+++ b/Lib/idlelib/OldStackViewer.py
@@ -232,7 +232,7 @@ class NamespaceViewer:
dict = -1
- def load_dict(self, dict, force=0):
+ def load_dict(self, dict, force=0, rpc_client=None):
if dict is self.dict and not force:
return
subframe = self.subframe
@@ -250,6 +250,10 @@ class NamespaceViewer:
for name in names:
value = dict[name]
svalue = self.repr.repr(value) # repr(value)
+ # Strip extra quotes caused by calling repr on the (already)
+ # repr'd value sent across the RPC interface:
+ if rpc_client:
+ svalue = svalue[1:-1]
l = Label(subframe, text=name)
l.grid(row=row, column=0, sticky="nw")
## l = Label(subframe, text=svalue, justify="l", wraplength=300)