https://github.com/python/cpython/commit/fbeafc062e55a52ba7369c36be0b3eb34eabb560
commit: fbeafc062e55a52ba7369c36be0b3eb34eabb560
branch: main
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-05-25T07:49:21Z
summary:
gh-150285: Fix too long docstrings in _wmi.exec_query (GH-150373)
files:
M PC/_wmimodule.cpp
M PC/clinic/_wmimodule.cpp.h
diff --git a/PC/_wmimodule.cpp b/PC/_wmimodule.cpp
index 86df2c7183c30d5..b9a229b1398ec8d 100644
--- a/PC/_wmimodule.cpp
+++ b/PC/_wmimodule.cpp
@@ -224,20 +224,19 @@ wait_event(HANDLE event, DWORD timeout)
/*[clinic input]
-@permit_long_docstring_body
_wmi.exec_query
query: unicode
Runs a WMI query against the local machine.
-This returns a single string with 'name=value' pairs in a flat array separated
-by null characters.
+This returns a single string with 'name=value' pairs in a flat array
+separated by null characters.
[clinic start generated code]*/
static PyObject *
_wmi_exec_query_impl(PyObject *module, PyObject *query)
-/*[clinic end generated code: output=a62303d5bb5e003f input=621f5c50c56d06d0]*/
+/*[clinic end generated code: output=a62303d5bb5e003f input=a8d5710acdfbf515]*/
/*[clinic end generated code]*/
{
diff --git a/PC/clinic/_wmimodule.cpp.h b/PC/clinic/_wmimodule.cpp.h
index 38d52d0329dcc0d..6c18990f056b5f7 100644
--- a/PC/clinic/_wmimodule.cpp.h
+++ b/PC/clinic/_wmimodule.cpp.h
@@ -14,8 +14,8 @@ PyDoc_STRVAR(_wmi_exec_query__doc__,
"\n"
"Runs a WMI query against the local machine.\n"
"\n"
-"This returns a single string with \'name=value\' pairs in a flat array
separated\n"
-"by null characters.");
+"This returns a single string with \'name=value\' pairs in a flat array\n"
+"separated by null characters.");
#define _WMI_EXEC_QUERY_METHODDEF \
{"exec_query", _PyCFunction_CAST(_wmi_exec_query),
METH_FASTCALL|METH_KEYWORDS, _wmi_exec_query__doc__},
@@ -72,4 +72,4 @@ _wmi_exec_query(PyObject *module, PyObject *const *args,
Py_ssize_t nargs, PyObj
exit:
return return_value;
}
-/*[clinic end generated code: output=802bcbcba69e8d0e input=a9049054013a1b77]*/
+/*[clinic end generated code: output=f246d0e568cc2d2c input=a9049054013a1b77]*/
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]