0494ae6module-08(ex1): remove requests module check
1 file changed, +0, -10
author
mogi <git@mogiya.dev> on 18-05-2026 19:18 UTC+1
committer
mogi <git@mogiya.dev> on 18-05-2026 19:18 UTC+1
parent87470aa
      @@ -10,10 +10,6 @@ REQUIRED_PKGS: dict[str, str] = {
 10 10     "matplotlib": "Visualization ready",
 11 11 }
 12 12 
 13   -OPTIONAL_PKGS: dict[str, str] = {
 14   -    "requests": "Network access ready"
 15   -}
 16   -
 17 13 
 18 14 def check_pkg(
 19 15         pkg_name: str
      @@ -94,12 +90,6 @@ def main() -> None:
 94 90             print(f"[MISSING] {pkg} - Not installed")
 95 91             missing_pkgs.append(pkg)
 96 92 
 97   -    for pkg, msg in OPTIONAL_PKGS.items():
 98   -        installed, module, version = check_pkg(pkg)
 99   -        if installed and module is not None:
100   -            print(f"[OK] {pkg} ({version}) - {msg}")
101   -            loaded_modules[pkg] = module
102   -
103 93     if missing_pkgs:
104 94         show_missing_instructions(missing_pkgs)
105 95         sys.exit(1)