diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-19 15:00:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 15:00:51 (GMT) |
commit | 55f8249d65af3f1b83df81fa46f6fc6e452ed944 (patch) | |
tree | 7b8f28fe7f6fc302105fe0683a9ad20ae826ec28 /Modules/clinic | |
parent | 6543912c90ffa579dc4c01e811f9609cf92197d3 (diff) | |
download | cpython-55f8249d65af3f1b83df81fa46f6fc6e452ed944.zip cpython-55f8249d65af3f1b83df81fa46f6fc6e452ed944.tar.gz cpython-55f8249d65af3f1b83df81fa46f6fc6e452ed944.tar.bz2 |
bpo-34741: Get rid of tp_getattro and tp_setattro in pyexpat.xmlparser. (GH-9422)
Use tp_members and tp_getset instead.
Diffstat (limited to 'Modules/clinic')
-rw-r--r-- | Modules/clinic/pyexpat.c.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Modules/clinic/pyexpat.c.h b/Modules/clinic/pyexpat.c.h index 777b6f3..b7687e5 100644 --- a/Modules/clinic/pyexpat.c.h +++ b/Modules/clinic/pyexpat.c.h @@ -208,23 +208,6 @@ exit: #endif /* (XML_COMBINED_VERSION >= 19505) */ -PyDoc_STRVAR(pyexpat_xmlparser___dir____doc__, -"__dir__($self, /)\n" -"--\n" -"\n"); - -#define PYEXPAT_XMLPARSER___DIR___METHODDEF \ - {"__dir__", (PyCFunction)pyexpat_xmlparser___dir__, METH_NOARGS, pyexpat_xmlparser___dir____doc__}, - -static PyObject * -pyexpat_xmlparser___dir___impl(xmlparseobject *self); - -static PyObject * -pyexpat_xmlparser___dir__(xmlparseobject *self, PyObject *Py_UNUSED(ignored)) -{ - return pyexpat_xmlparser___dir___impl(self); -} - PyDoc_STRVAR(pyexpat_ParserCreate__doc__, "ParserCreate($module, /, encoding=None, namespace_separator=None,\n" " intern=None)\n" @@ -289,4 +272,4 @@ exit: #ifndef PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #define PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF #endif /* !defined(PYEXPAT_XMLPARSER_USEFOREIGNDTD_METHODDEF) */ -/*[clinic end generated code: output=34d02345deee104c input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6bdf1faf8ba1af32 input=a9049054013a1b77]*/ |