Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, db, mode="r"):
self.mode = mode
self.f = None
self.db = db
self.lock = filelock.FileLock(HDF5Manager.LOCK_FILE, timeout=60 * 3)
filelock.logger().setLevel(logging.ERROR)