A cross-platform locking file context.
May be used in a with statement to provide system-level concurrency
This class relies on zc.lockfile for the underlying locking.
This class is not threadsafe.
Attempt to acquire the lock every `delay` seconds until the
lock is acquired or until `timeout` has expired.
Raises FileLockTimeout if the timeout is exceeded.
Errors opening the lock file (other than if it exists) are
- except zc.lockfile.LockError
+ except zc.lockfile.LockError:
timeout_expired = time.time()-start_time >= self.timeout