def _obtain_lock(self):
        return self._obtain_lock_or_raise()
The default implementation will raise if a lock cannot be obtained.
dataset/ETHPy150Open codeinn/vcs/vcs/utils/lockfiles.py/LockFile._obtain_lock