Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_dbmmodule.c463 PyObject *filenamebytes = PyUnicode_EncodeFSDefault(filename); in dbmopen_impl() local
464 if (filenamebytes == NULL) { in dbmopen_impl()
467 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
468 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
469 Py_DECREF(filenamebytes); in dbmopen_impl()
474 Py_DECREF(filenamebytes); in dbmopen_impl()
D_gdbmmodule.c632 PyObject *filenamebytes = PyUnicode_EncodeFSDefault(filename); in dbmopen_impl() local
633 if (filenamebytes == NULL) { in dbmopen_impl()
636 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
637 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
638 Py_DECREF(filenamebytes); in dbmopen_impl()
643 Py_DECREF(filenamebytes); in dbmopen_impl()