Searched refs:readmethod (Results 1 – 2 of 2) sorted by relevance
810 PyObject *readmethod = NULL; in pyexpat_xmlparser_ParseFile() local813 if (_PyObject_LookupAttrId(file, &PyId_read, &readmethod) < 0) { in pyexpat_xmlparser_ParseFile()816 if (readmethod == NULL) { in pyexpat_xmlparser_ParseFile()825 Py_XDECREF(readmethod); in pyexpat_xmlparser_ParseFile()829 bytes_read = readinst(buf, BUF_SIZE, readmethod); in pyexpat_xmlparser_ParseFile()831 Py_DECREF(readmethod); in pyexpat_xmlparser_ParseFile()836 Py_XDECREF(readmethod); in pyexpat_xmlparser_ParseFile()843 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()