code/code: remove Frame.exec_() method

Not used.
This commit is contained in:
Ran Benita 2020-07-10 12:00:14 +03:00
parent c3864bc12b
commit 85ef2bf698
1 changed files with 0 additions and 9 deletions

View File

@ -145,15 +145,6 @@ class Frame:
f_locals.update(vars) f_locals.update(vars)
return eval(code, self.f_globals, f_locals) return eval(code, self.f_globals, f_locals)
def exec_(self, code, **vars) -> None:
"""Exec 'code' in the frame.
'vars' are optional; additional local variables.
"""
f_locals = self.f_locals.copy()
f_locals.update(vars)
exec(code, self.f_globals, f_locals)
def repr(self, object: object) -> str: def repr(self, object: object) -> str:
"""Return a 'safe' (non-recursive, one-line) string repr for 'object'.""" """Return a 'safe' (non-recursive, one-line) string repr for 'object'."""
return saferepr(object) return saferepr(object)