Skip to content

Commit 4b3fcb6

Browse files
committed
lispy-python.py (eval_code): Clean up
1 parent 63fdc51 commit 4b3fcb6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lispy-python.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,6 @@ def eval_code(_code: str, _env: Dict[str, Any] = {}) -> EvalResult:
791791
exec(ast.unparse(last), _f.f_globals, locals_2)
792792
out = buf.getvalue().strip()
793793
binds1 = [k for k in locals_2.keys() if k not in locals_1.keys()]
794-
for sym in ["_res", "binds", "out", "err", "_env", "new_code", "last", "butlast", "locals_1", "locals_2"]:
795-
try:
796-
if id(locals_1[sym]) != id(locals_2[sym]):
797-
binds1.append(sym)
798-
except:
799-
pass
800794
for bind in binds1:
801795
_f.f_globals[bind] = locals_2[bind]
802796
binds2 = [bind for bind in binds1 if bind not in ["__res__", "__return__"]]

0 commit comments

Comments
 (0)