mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix exception with dictionary keys with tab symbols (PY-16188)
Replace tabs in keys with special symbols for sending to debugger
This commit is contained in:
@@ -200,6 +200,9 @@ def getVariable(thread_id, frame_id, scope, attrs):
|
||||
else:
|
||||
attrList = []
|
||||
|
||||
for attr in attrList:
|
||||
attr.replace("@_@TAB_CHAR@_@", '\t')
|
||||
|
||||
if scope == 'EXPRESSION':
|
||||
for count in xrange(len(attrList)):
|
||||
if count == 0:
|
||||
|
||||
@@ -26,7 +26,7 @@ public class GetVariableCommand extends GetFrameCommand {
|
||||
sb.insert(0, BY_ID).insert(0, '\t').insert(0, p.getId());
|
||||
break;
|
||||
} else {
|
||||
sb.insert(0, p.getTempName());
|
||||
sb.insert(0, p.getTempName().replaceAll("\t", TAB_CHAR));
|
||||
}
|
||||
p = p.getParent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user