Searched refs:readmethod (Results 1 – 2 of 2) sorted by relevance
819 PyObject *readmethod = NULL; in pyexpat_xmlparser_ParseFile() local822 readmethod = _PyObject_GetAttrId(file, &PyId_read); in pyexpat_xmlparser_ParseFile()823 if (readmethod == NULL) { in pyexpat_xmlparser_ParseFile()832 Py_XDECREF(readmethod); in pyexpat_xmlparser_ParseFile()836 bytes_read = readinst(buf, BUF_SIZE, readmethod); in pyexpat_xmlparser_ParseFile()838 Py_DECREF(readmethod); in pyexpat_xmlparser_ParseFile()843 Py_XDECREF(readmethod); in pyexpat_xmlparser_ParseFile()850 Py_XDECREF(readmethod); in pyexpat_xmlparser_ParseFile()
965 PyObject *readmethod = NULL; in xmlparse_ParseFile() local967 readmethod = PyObject_GetAttrString(f, "read"); in xmlparse_ParseFile()968 if (readmethod == NULL) { in xmlparse_ParseFile()978 Py_XDECREF(readmethod); in xmlparse_ParseFile()982 bytes_read = readinst(buf, BUF_SIZE, readmethod); in xmlparse_ParseFile()984 Py_XDECREF(readmethod); in xmlparse_ParseFile()990 Py_XDECREF(readmethod); in xmlparse_ParseFile()997 Py_XDECREF(readmethod); in xmlparse_ParseFile()