Release the lock
(self)
| 214 | fcntl.lockf(self.lock_file, fcntl.LOCK_EX) |
| 215 | |
| 216 | def release(self): |
| 217 | """Release the lock""" |
| 218 | if self.lock_file: |
| 219 | if fcntl: |
| 220 | fcntl.lockf(self.lock_file, fcntl.LOCK_UN) |
| 221 | self.lock_file.close() |
| 222 | self.lock_file = None |
| 223 | |
| 224 | |
| 225 | def filelock(path): |
no test coverage detected