Home
last modified time | relevance | path

Searched refs:stringobj (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/_io/
Dfileio.c208 PyObject *nameobj, *stringobj = NULL; in fileio_init() local
279 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()
/external/python/cpython3/Modules/_io/
Dfileio.c229 PyObject *stringobj = NULL; local
274 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);