mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
stubtest_stdlib: [minor] remove unused code (#7846)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -18,8 +18,6 @@ def run_stubtest(typeshed_dir: Path) -> int:
|
||||
platform_allowlist = "{}.txt".format(sys.platform)
|
||||
combined_allowlist = "{}-py{}{}.txt".format(sys.platform, sys.version_info.major, sys.version_info.minor)
|
||||
|
||||
ignore_unused_allowlist = "--ignore-unused-allowlist" in sys.argv[1:]
|
||||
|
||||
cmd = [
|
||||
sys.executable,
|
||||
"-m",
|
||||
@@ -32,8 +30,6 @@ def run_stubtest(typeshed_dir: Path) -> int:
|
||||
"--allowlist",
|
||||
str(allowlist_dir / version_allowlist),
|
||||
]
|
||||
if ignore_unused_allowlist:
|
||||
cmd += ["--ignore-unused-allowlist"]
|
||||
if (allowlist_dir / platform_allowlist).exists():
|
||||
cmd += ["--allowlist", str(allowlist_dir / platform_allowlist)]
|
||||
if (allowlist_dir / combined_allowlist).exists():
|
||||
|
||||
Reference in New Issue
Block a user