Skip to content

Fix Windows man pages guard (os.system to sys.platform)#1903

Open
vtino17 wants to merge 1 commit into
httpie:masterfrom
vtino17:fix/man-pages-windows
Open

Fix Windows man pages guard (os.system to sys.platform)#1903
vtino17 wants to merge 1 commit into
httpie:masterfrom
vtino17:fix/man-pages-windows

Conversation

@vtino17

@vtino17 vtino17 commented Jul 21, 2026

Copy link
Copy Markdown

Fixes #1898

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

@vtino17
vtino17 force-pushed the fix/man-pages-windows branch from 9217262 to 84886e8 Compare July 24, 2026 08:48
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