scripts: Replaced __builtins__ with builtins

Apparently __builtins__ is a CPython implementation detail, and behaves
differently when executed vs imported???

import builtins is the correct way to go about this.
This commit is contained in:
Christopher Haster
2024-12-28 00:52:44 -06:00
parent 66bf005bb8
commit 0adec7f15c
11 changed files with 22 additions and 11 deletions

View File

@@ -544,7 +544,8 @@ def table(Result, results, diff_results=None, *,
depth=1,
hot=None,
**_):
all_, all = all, __builtins__.all
import builtins
all_, all = all, builtins.all
if by is None:
by = Result._by