| 1086 | } |
| 1087 | |
| 1088 | static inline int |
| 1089 | PyDict_PopString(PyObject *dict, const char *key, PyObject **result) |
| 1090 | { |
| 1091 | PyObject *key_obj = PyUnicode_FromString(key); |
| 1092 | if (key_obj == NULL) { |
| 1093 | if (result != NULL) { |
| 1094 | *result = NULL; |
| 1095 | } |
| 1096 | return -1; |
| 1097 | } |
| 1098 | |
| 1099 | int res = PyDict_Pop(dict, key_obj, result); |
| 1100 | Py_DECREF(key_obj); |
| 1101 | return res; |
| 1102 | } |
| 1103 | #endif |
| 1104 | |
| 1105 |
nothing calls this directly
no test coverage detected