Home
last modified time | relevance | path

Searched refs:modeobj (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/_io/
D_iomodule.c306 PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL; in io_open() local
421 modeobj = PyUnicode_FromString(mode); in io_open()
422 if (modeobj == NULL) in io_open()
477 Py_DECREF(modeobj); in io_open()
507 Py_DECREF(modeobj); in io_open()
522 if (PyObject_SetAttrString(wrapper, "mode", modeobj) < 0) in io_open()
524 Py_DECREF(modeobj); in io_open()
536 Py_XDECREF(modeobj); in io_open()
/external/python/cpython3/Modules/_io/
D_iomodule.c245 PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL, *path_or_fd = NULL; in _io_open_impl() local
397 modeobj = PyUnicode_FromString(mode); in _io_open_impl()
398 if (modeobj == NULL) in _io_open_impl()
443 Py_DECREF(modeobj); in _io_open_impl()
473 Py_DECREF(modeobj); in _io_open_impl()
488 if (_PyObject_SetAttrId(wrapper, &PyId_mode, modeobj) < 0) in _io_open_impl()
490 Py_DECREF(modeobj); in _io_open_impl()
503 Py_XDECREF(modeobj); in _io_open_impl()
Dtextio.c2886 PyObject *nameobj, *modeobj, *res, *s; in textiowrapper_repr() local
2920 if (_PyObject_LookupAttrId((PyObject *) self, &PyId_mode, &modeobj) < 0) { in textiowrapper_repr()
2923 if (modeobj != NULL) { in textiowrapper_repr()
2924 s = PyUnicode_FromFormat(" mode=%R", modeobj); in textiowrapper_repr()
2925 Py_DECREF(modeobj); in textiowrapper_repr()