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:
+2
-1
@@ -544,7 +544,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
+2
-1
@@ -405,7 +405,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
+2
-1
@@ -1495,7 +1495,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
+2
-1
@@ -744,7 +744,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
+2
-1
@@ -544,7 +544,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
+2
-1
@@ -28,7 +28,8 @@ ERRS = [
|
|||||||
|
|
||||||
def main(errs, *,
|
def main(errs, *,
|
||||||
list=False):
|
list=False):
|
||||||
list_, list = list, __builtins__.list
|
import builtins
|
||||||
|
list_, list = list, builtins.list
|
||||||
|
|
||||||
# list all known error codes
|
# list all known error codes
|
||||||
if list_:
|
if list_:
|
||||||
|
|||||||
+2
-1
@@ -262,7 +262,8 @@ def main(tags, *,
|
|||||||
block_count=None,
|
block_count=None,
|
||||||
off=None,
|
off=None,
|
||||||
**args):
|
**args):
|
||||||
list_, list = list, __builtins__.list
|
import builtins
|
||||||
|
list_, list = list, builtins.list
|
||||||
|
|
||||||
# list all known tags
|
# list all known tags
|
||||||
if list_:
|
if list_:
|
||||||
|
|||||||
+2
-1
@@ -859,7 +859,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
+2
-1
@@ -829,7 +829,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
+2
-1
@@ -493,7 +493,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
+2
-1
@@ -562,7 +562,8 @@ def table(Result, results, diff_results=None, *,
|
|||||||
depth=1,
|
depth=1,
|
||||||
hot=None,
|
hot=None,
|
||||||
**_):
|
**_):
|
||||||
all_, all = all, __builtins__.all
|
import builtins
|
||||||
|
all_, all = all, builtins.all
|
||||||
|
|
||||||
if by is None:
|
if by is None:
|
||||||
by = Result._by
|
by = Result._by
|
||||||
|
|||||||
Reference in New Issue
Block a user