summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-05-06 15:36:35 (GMT)
committerGitHub <noreply@github.com>2019-05-06 15:36:35 (GMT)
commit6b95149eccac540a911a5ada03fcb7d623a0de37 (patch)
tree75de63c3c78740fbb1a2690aa535550221c55dee /Modules
parent8b1271b12fdbb1ac01217d929d8b112119e3f53b (diff)
downloadcpython-6b95149eccac540a911a5ada03fcb7d623a0de37.zip
cpython-6b95149eccac540a911a5ada03fcb7d623a0de37.tar.gz
cpython-6b95149eccac540a911a5ada03fcb7d623a0de37.tar.bz2
bpo-36811: Fix a C compiler warning in _elementtree.c. (GH-13109)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_elementtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 1e58ddb..e9a0ea2 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -1171,7 +1171,7 @@ checkpath(PyObject* tag)
char *p = PyBytes_AS_STRING(tag);
const Py_ssize_t len = PyBytes_GET_SIZE(tag);
if (len >= 3 && p[0] == '{' && (
- p[1] == '}' || p[1] == '*' && p[2] == '}')) {
+ p[1] == '}' || (p[1] == '*' && p[2] == '}'))) {
/* wildcard: '{}tag' or '{*}tag' */
return 1;
}