Skip to content

Commit 9cb3092

Browse files
committed
PEP 7
1 parent d35a6b4 commit 9cb3092

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Doc/extending/extending.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,8 +1349,9 @@ All that a client module must do in order to have access to the function
13491349
static int
13501350
client_module_exec(PyObject *m)
13511351
{
1352-
if (import_spam() < 0)
1352+
if (import_spam() < 0) {
13531353
return -1;
1354+
}
13541355
/* additional initialization can happen here */
13551356
return 0;
13561357
}

Doc/extending/newtypes_tutorial.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,9 @@ function::
884884
sublist_module_exec(PyObject *m)
885885
{
886886
SubListType.tp_base = &PyList_Type;
887-
if (PyType_Ready(&SubListType) < 0)
887+
if (PyType_Ready(&SubListType) < 0) {
888888
return -1;
889+
}
889890

890891
if (PyModule_AddObjectRef(m, "SubList", (PyObject *) &SubListType) < 0) {
891892
return -1;

0 commit comments

Comments
 (0)