diff options
Diffstat (limited to 'Mac/Modules/list/listsupport.py')
-rw-r--r-- | Mac/Modules/list/listsupport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/Modules/list/listsupport.py b/Mac/Modules/list/listsupport.py index b9bb964..98f0f9e 100644 --- a/Mac/Modules/list/listsupport.py +++ b/Mac/Modules/list/listsupport.py @@ -176,7 +176,8 @@ if (!PyArg_ParseTuple(_args, "O&", ResObj_Convert, &h)) return NULL; l = (ListObject *)ListObj_New(as_List(h)); l->ob_must_be_disposed = 0; -return Py_BuildValue("O", l); +_res = Py_BuildValue("O", l); +return _res; """ f = ManualGenerator("as_List", as_List_body) f.docstring = lambda: "(Resource)->List.\nReturns List object (which is not auto-freed!)" |