From 84886e86e1ef9bade843a0e999793571f61e8180 Mon Sep 17 00:00:00 2001 From: vtino17 Date: Tue, 21 Jul 2026 12:59:25 +0700 Subject: [PATCH] =?UTF-8?q?Fix=20Windows=20man=20pages=20guard=20(os.syste?= =?UTF-8?q?m=20=E2=86=92=20sys.platform)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- httpie/output/ui/man_pages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpie/output/ui/man_pages.py b/httpie/output/ui/man_pages.py index 0ba4974578..1b8fb58e92 100644 --- a/httpie/output/ui/man_pages.py +++ b/httpie/output/ui/man_pages.py @@ -2,6 +2,7 @@ import subprocess import os +import sys from httpie.context import Environment @@ -18,7 +19,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 sys.platform == 'win32': return False try: process = subprocess.run(