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 68edf85 commit 9eed912Copy full SHA for 9eed912
src/filelock/_soft.py
@@ -23,10 +23,9 @@ def _acquire(self) -> None:
23
try:
24
fd = os.open(self._lock_file, flags, self._mode)
25
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
- ):
+ if (exception.errno == EEXIST) or ( # expected if cannot lock
+ exception.errno == EACCES and sys.platform == "win32"
+ ): # pragma: win32 no cover
30
pass
31
else:
32
raise
0 commit comments