Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74183d9 commit d258650Copy full SHA for d258650
1 file changed
pre_commit/file_lock.py
@@ -1,11 +1,11 @@
1
import contextlib
2
import errno
3
-import os
+import sys
4
from typing import Callable
5
from typing import Generator
6
7
8
-if os.name == 'nt': # pragma: no cover (windows)
+if sys.platform == 'win32': # pragma: no cover (windows)
9
import msvcrt
10
11
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/locking
0 commit comments