Skip to content

Commit

Permalink
use comparison with sys.platform so mypy understands it
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jan 25, 2021
1 parent 74183d9 commit d258650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre_commit/file_lock.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import contextlib
import errno
import os
import sys
from typing import Callable
from typing import Generator


if os.name == 'nt': # pragma: no cover (windows)
if sys.platform == 'win32': # pragma: no cover (windows)
import msvcrt

# https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/locking
Expand Down

0 comments on commit d258650

Please sign in to comment.