We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b1271b commit 6b95149Copy full SHA for 6b95149
1 file changed
Modules/_elementtree.c
@@ -1171,7 +1171,7 @@ checkpath(PyObject* tag)
1171
char *p = PyBytes_AS_STRING(tag);
1172
const Py_ssize_t len = PyBytes_GET_SIZE(tag);
1173
if (len >= 3 && p[0] == '{' && (
1174
- p[1] == '}' || p[1] == '*' && p[2] == '}')) {
+ p[1] == '}' || (p[1] == '*' && p[2] == '}'))) {
1175
/* wildcard: '{}tag' or '{*}tag' */
1176
return 1;
1177
}
0 commit comments