summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/grpmodule.c.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-09 13:16:06 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-09 13:16:06 (GMT)
commit5dee6551e2b98792bc6336206f763623483e7883 (patch)
treee18dfc32e889ca62dc3a0d3f4cd1484353d7a6aa /Modules/clinic/grpmodule.c.h
parent2561bf6ae0a16576321cfb8cb900869b109b2263 (diff)
downloadcpython-5dee6551e2b98792bc6336206f763623483e7883.zip
cpython-5dee6551e2b98792bc6336206f763623483e7883.tar.gz
cpython-5dee6551e2b98792bc6336206f763623483e7883.tar.bz2
Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7.
Diffstat (limited to 'Modules/clinic/grpmodule.c.h')
-rw-r--r--Modules/clinic/grpmodule.c.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Modules/clinic/grpmodule.c.h b/Modules/clinic/grpmodule.c.h
index eb5b59d..cd111aa 100644
--- a/Modules/clinic/grpmodule.c.h
+++ b/Modules/clinic/grpmodule.c.h
@@ -24,8 +24,9 @@ grp_getgrgid(PyModuleDef *module, PyObject *args, PyObject *kwargs)
PyObject *id;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:getgrgid", _keywords,
- &id))
+ &id)) {
goto exit;
+ }
return_value = grp_getgrgid_impl(module, id);
exit:
@@ -54,8 +55,9 @@ grp_getgrnam(PyModuleDef *module, PyObject *args, PyObject *kwargs)
PyObject *name;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "U:getgrnam", _keywords,
- &name))
+ &name)) {
goto exit;
+ }
return_value = grp_getgrnam_impl(module, name);
exit:
@@ -82,4 +84,4 @@ grp_getgrall(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
{
return grp_getgrall_impl(module);
}
-/*[clinic end generated code: output=5191c25600afb1bd input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a8a097520206ccd6 input=a9049054013a1b77]*/