Skip to content

Fix os.system typo in man_pages.py - #1916

Open
rudrakumar07 wants to merge 1 commit into
httpie:masterfrom
rudrakumar07:fix-os-system-typo
Open

Fix os.system typo in man_pages.py#1916
rudrakumar07 wants to merge 1 commit into
httpie:masterfrom
rudrakumar07:fix-os-system-typo

Conversation

@rudrakumar07

Copy link
Copy Markdown

Fixes #1898.

os.system == 'nt' compares a function to a string (always False). Changed to os.name == 'nt' to correctly detect Windows.

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 httpie#1898
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