Simplify __all__ for modules beginning with 'm' to 't' (#8028)

This commit is contained in:
Alex Waygood
2022-06-07 20:14:15 +01:00
committed by GitHub
parent b88ea4a499
commit 591593c85f
15 changed files with 620 additions and 1626 deletions

View File

@@ -2,121 +2,65 @@ import sys
from _operator import *
__all__ = [
"abs",
"add",
"and_",
"attrgetter",
"concat",
"contains",
"countOf",
"delitem",
"eq",
"floordiv",
"ge",
"getitem",
"gt",
"iadd",
"iand",
"iconcat",
"ifloordiv",
"ilshift",
"imatmul",
"imod",
"imul",
"index",
"indexOf",
"inv",
"invert",
"ior",
"ipow",
"irshift",
"is_",
"is_not",
"isub",
"itemgetter",
"itruediv",
"ixor",
"le",
"length_hint",
"lshift",
"lt",
"matmul",
"methodcaller",
"mod",
"mul",
"ne",
"neg",
"not_",
"or_",
"pos",
"pow",
"rshift",
"setitem",
"sub",
"truediv",
"truth",
"xor",
]
if sys.version_info >= (3, 11):
__all__ = [
"abs",
"add",
"and_",
"attrgetter",
"call",
"concat",
"contains",
"countOf",
"delitem",
"eq",
"floordiv",
"ge",
"getitem",
"gt",
"iadd",
"iand",
"iconcat",
"ifloordiv",
"ilshift",
"imatmul",
"imod",
"imul",
"index",
"indexOf",
"inv",
"invert",
"ior",
"ipow",
"irshift",
"is_",
"is_not",
"isub",
"itemgetter",
"itruediv",
"ixor",
"le",
"length_hint",
"lshift",
"lt",
"matmul",
"methodcaller",
"mod",
"mul",
"ne",
"neg",
"not_",
"or_",
"pos",
"pow",
"rshift",
"setitem",
"sub",
"truediv",
"truth",
"xor",
]
else:
__all__ = [
"abs",
"add",
"and_",
"attrgetter",
"concat",
"contains",
"countOf",
"delitem",
"eq",
"floordiv",
"ge",
"getitem",
"gt",
"iadd",
"iand",
"iconcat",
"ifloordiv",
"ilshift",
"imatmul",
"imod",
"imul",
"index",
"indexOf",
"inv",
"invert",
"ior",
"ipow",
"irshift",
"is_",
"is_not",
"isub",
"itemgetter",
"itruediv",
"ixor",
"le",
"length_hint",
"lshift",
"lt",
"matmul",
"methodcaller",
"mod",
"mul",
"ne",
"neg",
"not_",
"or_",
"pos",
"pow",
"rshift",
"setitem",
"sub",
"truediv",
"truth",
"xor",
]
__all__ += ["call"]
__lt__ = lt
__le__ = le