| 1426 | } |
| 1427 | |
| 1428 | static inline int |
| 1429 | PyUnicodeWriter_WriteRepr(PyUnicodeWriter *writer, PyObject *obj) |
| 1430 | { |
| 1431 | PyObject *str = PyObject_Repr(obj); |
| 1432 | if (str == NULL) { |
| 1433 | return -1; |
| 1434 | } |
| 1435 | |
| 1436 | int res = _PyUnicodeWriter_WriteStr((_PyUnicodeWriter*)writer, str); |
| 1437 | Py_DECREF(str); |
| 1438 | return res; |
| 1439 | } |
| 1440 | |
| 1441 | static inline int |
| 1442 | PyUnicodeWriter_WriteUTF8(PyUnicodeWriter *writer, |