| 46 | |
| 47 | namespace { |
| 48 | std::string PyUnicodeToStdString(const PyObject* py_str) { |
| 49 | return PyBytes_AsString(PyUnicode_AsEncodedString(const_cast<PyObject*>(py_str), "utf-8", "~E~")); |
| 50 | } |
| 51 | #if PY_VERSION_HEX < 0x03090000 |
| 52 | PyCodeObject* PyFrame_GetCode(PyFrameObject* frame) { |
| 53 | assert(frame != NULL); |
no outgoing calls
no test coverage detected