diff options
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r-- | Modules/_elementtree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index da223c4..767c6ee 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -1303,7 +1303,7 @@ element_getattro(ElementObject* self, PyObject* nameobj) char *name = ""; if (PyUnicode_Check(nameobj)) - name = PyUnicode_AsString(nameobj); + name = _PyUnicode_AsString(nameobj); if (strcmp(name, "tag") == 0) res = self->tag; @@ -2529,7 +2529,7 @@ xmlparser_getattro(XMLParserObject* self, PyObject* nameobj) char *name = ""; if (PyUnicode_Check(nameobj)) - name = PyUnicode_AsString(nameobj); + name = _PyUnicode_AsString(nameobj); PyErr_Clear(); |