Download tasks/python-hyper__h11-cinst-fded6540/solution/patch.diff from Essacheez/r2e-code-instruct-qwen3.5: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/datasets/Essacheez/r2e-code-instruct-qwen3.5/resolve/main/tasks/python-hyper__h11-cinst-fded6540/solution/patch.diff
- Command line
-
hf download hf://datasets/Essacheez/r2e-code-instruct-qwen3.5/tasks/python-hyper__h11-cinst-fded6540/solution/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Essacheez/r2e-code-instruct-qwen3.5/resolve/main/tasks/python-hyper__h11-cinst-fded6540/solution/patch.diff
447 Bytes
| diff --git a/task_module.py b/task_module.py | |
| new file mode 100644 | |
| index 0000000..0000001 | |
| --- /dev/null | |
| +++ b/task_module.py | |
| +from h11 import ProtocolError | |
| + | |
| +class H11ErrorReporter: | |
| + @staticmethod | |
| + def analyze_exception(exc: Exception) -> dict: | |
| + if isinstance(exc, ProtocolError): | |
| + return {"hint": exc.error_status_hint} | |
| + raise TypeError("Not an h11 protocol error") | |
| \ No newline at end of file | |