MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / __enter__

Method __enter__

codeclash/analysis/llm_as_judge/utils.py:15–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13 self.lock_file = None
14
15 def __enter__(self):
16 self.lock_file = open(self.lock_path, "w")
17 fcntl.flock(self.lock_file.fileno(), fcntl.LOCK_EX)
18 return self
19
20 def __exit__(self, exc_type, exc_val, exc_tb):
21 if self.lock_file:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected