Skip to content

Commit 8a36baa

Browse files
committed
Add comment about filehandled opened in acquire_lock.
Opened lock file is closed by caller and not in release_lock. Not sure why but this confused me.
1 parent 09424a7 commit 8a36baa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roundup/backends/locking.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
def acquire_lock(path, block=1):
3232
'''Acquire a lock for the given path
33+
File is closed in caller not by unlock.
3334
'''
3435
file = open(path, 'w')
3536
if block:

0 commit comments

Comments
 (0)