Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_dbmmodule.c454 PyObject *filenamebytes = PyUnicode_EncodeFSDefault(filename); in dbmopen_impl() local
455 if (filenamebytes == NULL) { in dbmopen_impl()
458 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
459 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
460 Py_DECREF(filenamebytes); in dbmopen_impl()
465 Py_DECREF(filenamebytes); in dbmopen_impl()
D_gdbmmodule.c610 PyObject *filenamebytes = PyUnicode_EncodeFSDefault(filename); in dbmopen_impl() local
611 if (filenamebytes == NULL) { in dbmopen_impl()
614 const char *name = PyBytes_AS_STRING(filenamebytes); in dbmopen_impl()
615 if (strlen(name) != (size_t)PyBytes_GET_SIZE(filenamebytes)) { in dbmopen_impl()
616 Py_DECREF(filenamebytes); in dbmopen_impl()
621 Py_DECREF(filenamebytes); in dbmopen_impl()