diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-01-30 06:41:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-01-30 06:41:13 +0000 |
commit | 110f2a64b57a8781ccbe1040021d5baaec761e01 (patch) | |
tree | d9bf0d538aff0d47e28ea2da949c00955bf920d4 /pre_commit/file_lock.py | |
parent | Adding upstream version 2.9.3. (diff) | |
download | pre-commit-110f2a64b57a8781ccbe1040021d5baaec761e01.tar.xz pre-commit-110f2a64b57a8781ccbe1040021d5baaec761e01.zip |
Adding upstream version 2.10.0.upstream/2.10.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/file_lock.py')
-rw-r--r-- | pre_commit/file_lock.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pre_commit/file_lock.py b/pre_commit/file_lock.py index 5e7a058..55a8eb2 100644 --- a/pre_commit/file_lock.py +++ b/pre_commit/file_lock.py @@ -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 |