Skip to content

Commit 5b3025d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fa8fd02 commit 5b3025d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/filelock/_soft.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ def _acquire(self) -> None:
2323
try:
2424
fd = os.open(self._lock_file, flags, self._mode)
2525
except OSError as exception:
26-
if (
27-
(exception.errno == EEXIST) or # expected if cannot lock
28-
(exception.errno == EACCES and sys.platform == "win32") # pragma: win32 no cover
29-
):
26+
if (exception.errno == EEXIST) or ( # expected if cannot lock
27+
exception.errno == EACCES and sys.platform == "win32"
28+
): # pragma: win32 no cover
3029
pass
3130
else:
3231
raise

tests/test_filelock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pathlib import Path, PurePath
1212
from stat import S_IWGRP, S_IWOTH, S_IWUSR, filemode
1313
from types import TracebackType
14-
from typing import Callable, Iterator, Tuple, Type, TYPE_CHECKING, Union
14+
from typing import TYPE_CHECKING, Callable, Iterator, Tuple, Type, Union
1515

1616
import pytest
1717
from _pytest.logging import LogCaptureFixture

0 commit comments

Comments
 (0)