MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyUnicodeWriter_WriteRepr

Function PyUnicodeWriter_WriteRepr

asyncpg/protocol/record/pythoncapi_compat.h:1428–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428static inline int
1429PyUnicodeWriter_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
1441static inline int
1442PyUnicodeWriter_WriteUTF8(PyUnicodeWriter *writer,

Callers 1

record_reprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected