mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix wrong return None result in changeAttrExpression
This commit is contained in:
@@ -364,7 +364,7 @@ def changeAttrExpression(thread_id, frame_id, attr, expression):
|
||||
if isinstance(frame, DjangoTemplateFrame):
|
||||
result = eval(expression, frame.f_globals, frame.f_locals)
|
||||
frame.changeVariable(attr, result)
|
||||
return
|
||||
return result
|
||||
|
||||
if attr[:7] == "Globals":
|
||||
attr = attr[8:]
|
||||
@@ -375,7 +375,7 @@ def changeAttrExpression(thread_id, frame_id, attr, expression):
|
||||
if pydevd_save_locals.is_save_locals_available():
|
||||
frame.f_locals[attr] = eval(expression, frame.f_globals, frame.f_locals)
|
||||
pydevd_save_locals.save_locals(frame)
|
||||
return
|
||||
return frame.f_locals[attr]
|
||||
|
||||
#default way (only works for changing it in the topmost frame)
|
||||
result = eval(expression, frame.f_globals, frame.f_locals)
|
||||
|
||||
Reference in New Issue
Block a user