Skip to content

Commit b321f5d

Browse files
committed
clinic.py also checks for .cpp files: PC/_wmimodule.cpp
1 parent 4960003 commit b321f5d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

PC/clinic/_wmimodule.cpp.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,10 @@ _wmi_exec_query(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObj
6363
_PyArg_BadArgument("exec_query", "argument 'query'", "str", args[0]);
6464
goto exit;
6565
}
66-
if (PyUnicode_READY(args[0]) == -1) {
67-
goto exit;
68-
}
6966
query = args[0];
7067
return_value = _wmi_exec_query_impl(module, query);
7168

7269
exit:
7370
return return_value;
7471
}
75-
/*[clinic end generated code: output=7fdf0c0579ddb566 input=a9049054013a1b77]*/
72+
/*[clinic end generated code: output=923d09bee1d15c5f input=a9049054013a1b77]*/

Tools/clinic/clinic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5522,7 +5522,8 @@ def main(argv):
55225522
if rcs_dir in dirs:
55235523
dirs.remove(rcs_dir)
55245524
for filename in files:
5525-
if not (filename.endswith('.c') or filename.endswith('.h')):
5525+
# handle .c, .cpp and .h files
5526+
if not filename.endswith(('.c', '.cpp', '.h')):
55265527
continue
55275528
path = os.path.join(root, filename)
55285529
if ns.verbose:

0 commit comments

Comments
 (0)