Merge pull request #8694 from bluetech/rec-eval-wrapper

code: remove unneeded comparison eval wrapper
This commit is contained in:
Ran Benita 2021-05-24 19:12:56 +03:00 committed by GitHub
commit e6ed28f0e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -422,21 +422,12 @@ class Traceback(List[TracebackEntry]):
f = entry.frame
loc = f.f_locals
for otherloc in values:
if f.eval(
co_equal,
__recursioncache_locals_1=loc,
__recursioncache_locals_2=otherloc,
):
if otherloc == loc:
return i
values.append(entry.frame.f_locals)
return None
co_equal = compile(
"__recursioncache_locals_1 == __recursioncache_locals_2", "?", "eval"
)
E = TypeVar("E", bound=BaseException, covariant=True)