Skip to content

Commit b100ec9

Browse files
Move fasteners import inside ThreadSynchronizer
1 parent dfe0321 commit b100ec9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/zarr/v2/sync.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
from collections import defaultdict
33
from threading import Lock
44

5-
import fasteners
6-
75

86
class ThreadSynchronizer:
97
"""Provides synchronization using thread locks."""
@@ -42,6 +40,7 @@ def __init__(self, path):
4240

4341
def __getitem__(self, item):
4442
path = os.path.join(self.path, item)
43+
import fasteners
4544
lock = fasteners.InterProcessLock(path)
4645
return lock
4746

0 commit comments

Comments
 (0)