Skip to content

Commit 9eed912

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 68edf85 commit 9eed912

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
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

0 commit comments

Comments
 (0)