Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _create_lock_file(path):
thread_lock = _ThreadLock(path)
file_lock = _LockFile(path)
return _LockSet([thread_lock, file_lock])