add curly braces to a single-line if block example in PEP 7 (#225)
This commit is contained in:
parent
24cd02b34c
commit
1085515c33
|
@ -127,8 +127,9 @@ Code lay-out
|
||||||
|
|
||||||
if (type->tp_dictoffset != 0 && base->tp_dictoffset == 0 &&
|
if (type->tp_dictoffset != 0 && base->tp_dictoffset == 0 &&
|
||||||
type->tp_dictoffset == b_size &&
|
type->tp_dictoffset == b_size &&
|
||||||
(size_t)t_size == b_size + sizeof(PyObject *))
|
(size_t)t_size == b_size + sizeof(PyObject *)) {
|
||||||
return 0; /* "Forgive" adding a __dict__ only */
|
return 0; /* "Forgive" adding a __dict__ only */
|
||||||
|
}
|
||||||
|
|
||||||
* Put blank lines around functions, structure definitions, and major
|
* Put blank lines around functions, structure definitions, and major
|
||||||
sections inside functions.
|
sections inside functions.
|
||||||
|
|
Loading…
Reference in New Issue