Merge pull request #8694 from bluetech/rec-eval-wrapper
code: remove unneeded comparison eval wrapper
This commit is contained in:
commit
e6ed28f0e7
|
@ -422,21 +422,12 @@ class Traceback(List[TracebackEntry]):
|
||||||
f = entry.frame
|
f = entry.frame
|
||||||
loc = f.f_locals
|
loc = f.f_locals
|
||||||
for otherloc in values:
|
for otherloc in values:
|
||||||
if f.eval(
|
if otherloc == loc:
|
||||||
co_equal,
|
|
||||||
__recursioncache_locals_1=loc,
|
|
||||||
__recursioncache_locals_2=otherloc,
|
|
||||||
):
|
|
||||||
return i
|
return i
|
||||||
values.append(entry.frame.f_locals)
|
values.append(entry.frame.f_locals)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
co_equal = compile(
|
|
||||||
"__recursioncache_locals_1 == __recursioncache_locals_2", "?", "eval"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
E = TypeVar("E", bound=BaseException, covariant=True)
|
E = TypeVar("E", bound=BaseException, covariant=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue