| 598 | if (!s) return raise_py_error(); |
| 599 | const char *cs = p_PyUnicode_AsUTF8(s); |
| 600 | if (!cs) { |
| 601 | p_Py_DecRef(s); |
| 602 | return raise_py_error(); |
| 603 | } |
| 604 | lean_object *out = lean_mk_string(cs); |
| 605 | p_Py_DecRef(s); |
| 606 | return lean_io_result_mk_ok(out); |
nothing calls this directly
no test coverage detected