summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/OldStackViewer.py
diff options
context:
space:
mode:
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)