mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
prefer sys.platform over os.name when checking for windows OS
This commit is contained in:
parent
2822de9aa6
commit
5ce4a549d3
8 changed files with 13 additions and 10 deletions
|
|
@ -119,7 +119,7 @@ def cmd_output(*cmd: str, **kwargs: Any) -> tuple[int, str, str | None]:
|
|||
return returncode, stdout, stderr
|
||||
|
||||
|
||||
if os.name != 'nt': # pragma: win32 no cover
|
||||
if sys.platform != 'win32': # pragma: win32 no cover
|
||||
from os import openpty
|
||||
import termios
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue