def __enter__(self):
try:<EOL><INDENT>with ExceptionTimer(timeout=self.timeout):<EOL><INDENT>LOGGER.debug('<STR_LIT>'.format(self.path))<EOL>self.lock.acquire()<EOL>LOGGER.debug('<STR_LIT>'.format(self.path))<EOL><DEDENT><DEDENT>except TimerException:<EOL><INDENT>raise TimerException(<EOL>'<STR_LIT>',<EOL>self.path,<EOL>self.timeout,<EOL>)<EOL><DEDENT>
Start the lock with timeout if needed in the acquire operation

Raises:
    TimerException: if the timeout is reached before acquiring the lock