diff roundup/backends/locking.py @ 7908:608f140237c9

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.
author John Rouillard <rouilj@ieee.org>
date Sat, 27 Apr 2024 23:24:05 -0400
parents 6e3e4f24c753
children
line wrap: on
line diff
--- a/roundup/backends/locking.py	Sat Apr 27 23:21:29 2024 -0400
+++ b/roundup/backends/locking.py	Sat Apr 27 23:24:05 2024 -0400
@@ -30,6 +30,7 @@
 
 def acquire_lock(path, block=1):
     '''Acquire a lock for the given path
+       File is closed in caller not by unlock.
     '''
     file = open(path, 'w')
     if block:

Roundup Issue Tracker: http://roundup-tracker.org/