| 43 | // the contained object will be decremented. |
| 44 | using Safe_PyObjectPtr = std::unique_ptr<PyObject, PyDecrefDeleter>; |
| 45 | Safe_PyObjectPtr make_safe(PyObject* object) { |
| 46 | return Safe_PyObjectPtr(object); |
| 47 | } |
| 48 | |
| 49 | // Workarounds for Python 2 vs 3 API differences. |
| 50 | #if PY_MAJOR_VERSION < 3 |
no outgoing calls
no test coverage detected