From 67ca45098b0a8359b76ee141ea1305c90b90b36f Mon Sep 17 00:00:00 2001 From: Bug Fix Date: Sun, 2 Aug 2026 18:38:56 +0530 Subject: [PATCH] Fix os.system typo in man_pages.py: os.system == 'nt' -> os.name == 'nt' os.system is a function, not a string attribute, so the comparison was always False. On Windows (os.name == 'nt'), man pages should be skipped since they are not available. Fixes #1898 --- httpie/output/ui/man_pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/output/ui/man_pages.py b/httpie/output/ui/man_pages.py index 0ba4974578..589b928553 100644 --- a/httpie/output/ui/man_pages.py +++ b/httpie/output/ui/man_pages.py @@ -18,7 +18,7 @@ def is_available(program: str) -> bool: Check whether `program`'s man pages are available on this system. """ - if NO_MAN_PAGES or os.system == 'nt': + if NO_MAN_PAGES or os.name == 'nt': return False try: process = subprocess.run(