Activated at the end of the with statement. It automatically releases the lock if it isn't locked.
(self, type, value, traceback)
| 277 | return self |
| 278 | |
| 279 | def __exit__(self, type, value, traceback): |
| 280 | """ Activated at the end of the with statement. |
| 281 | It automatically releases the lock if it isn't locked. |
| 282 | """ |
| 283 | if self.is_locked: |
| 284 | self.release() |
| 285 | |
| 286 | def __del__(self): |
| 287 | """ Make sure that the FileLock instance doesn't leave a lockfile |