(self, timeout=5, tmp_file="cache/tmp")
| 78 | import os |
| 79 | class PythonREPL(): |
| 80 | def __init__(self, timeout=5, tmp_file="cache/tmp"): |
| 81 | self.timeout = timeout |
| 82 | self.tmp_file = tmp_file |
| 83 | os.system(f"touch {self.tmp_file}.py" ) |
| 84 | |
| 85 | @contextmanager |
| 86 | def time_limit(self, seconds): |
nothing calls this directly
no outgoing calls
no test coverage detected