Searched refs:stringobj (Results 1 – 2 of 2) sorted by relevance
208 PyObject *nameobj, *stringobj = NULL; in fileio_init() local279 stringobj = PyUnicode_AsEncodedString( in fileio_init()282 if (stringobj == NULL) in fileio_init()284 if (!PyBytes_Check(stringobj)) { in fileio_init()289 name = PyBytes_AS_STRING(stringobj); in fileio_init()290 if (strlen(name) != (size_t)PyBytes_GET_SIZE(stringobj)) { in fileio_init()414 Py_CLEAR(stringobj); in fileio_init()
229 PyObject *stringobj = NULL; local274 if (!PyUnicode_FSDecoder(nameobj, &stringobj)) {277 widename = PyUnicode_AsUnicode(stringobj);281 if (!PyUnicode_FSConverter(nameobj, &stringobj)) {284 name = PyBytes_AS_STRING(stringobj);494 Py_CLEAR(stringobj);