@@ -183,31 +183,32 @@ static PyMethodDef functions[] = {
183183 "Check whether the current X11 or Wayland display is valid.\n\n"
184184 "On Linux, returns True if either $DISPLAY is set and XOpenDisplay(NULL)\n"
185185 "succeeds, or $WAYLAND_DISPLAY is set and wl_display_connect(NULL)\n"
186- "succeeds. On other platforms, always returns True." },
186+ "succeeds.\n\n"
187+ "On other platforms, always returns True." },
187188 {"Win32_GetCurrentProcessExplicitAppUserModelID" ,
188189 (PyCFunction )mpl_GetCurrentProcessExplicitAppUserModelID , METH_NOARGS ,
189190 "Win32_GetCurrentProcessExplicitAppUserModelID()\n--\n\n"
190- "Wrapper for Windows's GetCurrentProcessExplicitAppUserModelID. On \n"
191- "non-Windows platforms, always returns None." },
191+ "Wrapper for Windows's GetCurrentProcessExplicitAppUserModelID.\n \n"
192+ "On non-Windows platforms, always returns None." },
192193 {"Win32_SetCurrentProcessExplicitAppUserModelID" ,
193194 (PyCFunction )mpl_SetCurrentProcessExplicitAppUserModelID , METH_O ,
194195 "Win32_SetCurrentProcessExplicitAppUserModelID(appid, /)\n--\n\n"
195- "Wrapper for Windows's SetCurrentProcessExplicitAppUserModelID. On \n"
196- "non-Windows platforms, a no-op ." },
196+ "Wrapper for Windows's SetCurrentProcessExplicitAppUserModelID.\n \n"
197+ "On non-Windows platforms, does nothing ." },
197198 {"Win32_GetForegroundWindow" ,
198199 (PyCFunction )mpl_GetForegroundWindow , METH_NOARGS ,
199200 "Win32_GetForegroundWindow()\n--\n\n"
200- "Wrapper for Windows' GetForegroundWindow. On non-Windows platforms, \n"
201- "always returns None." },
201+ "Wrapper for Windows' GetForegroundWindow.\n \n"
202+ "On non-Windows platforms, always returns None." },
202203 {"Win32_SetForegroundWindow" ,
203204 (PyCFunction )mpl_SetForegroundWindow , METH_O ,
204205 "Win32_SetForegroundWindow(hwnd, /)\n--\n\n"
205- "Wrapper for Windows' SetForegroundWindow. On non-Windows platforms, \n"
206- "a no-op ." },
206+ "Wrapper for Windows' SetForegroundWindow.\n \n"
207+ "On non-Windows platforms, does nothing ." },
207208 {"Win32_SetProcessDpiAwareness_max" ,
208209 (PyCFunction )mpl_SetProcessDpiAwareness_max , METH_NOARGS ,
209210 "Win32_SetProcessDpiAwareness_max()\n--\n\n"
210- "Set Windows' process DPI awareness to best option available.\n"
211+ "Set Windows' process DPI awareness to best option available.\n\n "
211212 "On non-Windows platforms, does nothing." },
212213 {NULL , NULL }}; // sentinel.
213214static PyModuleDef util_module = {
0 commit comments