Skip to content

Fix Windows man pages guard: os.system to sys.platform#1908

Open
adnanahamed66772ndpc wants to merge 2 commits into
httpie:masterfrom
adnanahamed66772ndpc:fix-windows-guard
Open

Fix Windows man pages guard: os.system to sys.platform#1908
adnanahamed66772ndpc wants to merge 2 commits into
httpie:masterfrom
adnanahamed66772ndpc:fix-windows-guard

Conversation

@adnanahamed66772ndpc

Copy link
Copy Markdown

Closes #1898, #1903

os.system is a function object, comparing to nt always returns False.
Changed to sys.platform == win32 for correct Windows detection.
Also added missing import sys.

Adnan Ahamed Himal added 2 commits July 25, 2026 22:45
os.system is a function object, comparing it to 'nt' always returns
False. Changed to sys.platform == 'win32' for correct Windows detection.

Closes httpie#1898, httpie#1903
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Windows guard in is_available() compares os.system (a function) to 'nt' — always False

1 participant