From: Just van Rossum Date: Tue, 18 Dec 2001 12:53:47 +0000 (+0000) Subject: Added missing docstring X-Git-Tag: v2.2.1c1~319 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f30c3ad0d9eb8ab076ebfb1e8faa33ce68130649;p=thirdparty%2FPython%2Fcpython.git Added missing docstring --- diff --git a/Mac/Modules/ctl/_Ctlmodule.c b/Mac/Modules/ctl/_Ctlmodule.c index 5f27ed359408..7571c3f14cd8 100644 --- a/Mac/Modules/ctl/_Ctlmodule.c +++ b/Mac/Modules/ctl/_Ctlmodule.c @@ -6046,7 +6046,7 @@ static PyMethodDef Ctl_methods[] = { #if TARGET_API_MAC_CARBON {"CreateTabsControl", (PyCFunction)Ctl_CreateTabsControl, 1, - NULL}, + "(WindowPtr window, Rect boundsRect, UInt16 size, UInt16 direction, ControlTabEntry tabArray) -> (ControlHandle outControl)"}, #endif {NULL, NULL, 0} }; diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py index 4529484b173c..553860891975 100644 --- a/Mac/Modules/ctl/ctlsupport.py +++ b/Mac/Modules/ctl/ctlsupport.py @@ -777,6 +777,7 @@ _res = Py_BuildValue("O&", return _res;""" f = ManualGenerator("CreateTabsControl", createtabscontrol_body, condition="#if TARGET_API_MAC_CARBON") +f.docstring = lambda: "(WindowPtr window, Rect boundsRect, UInt16 size, UInt16 direction, ControlTabEntry tabArray) -> (ControlHandle outControl)" module.add(f) # generate output (open the output file as late as possible)