add curly braces to a single-line if block example in PEP 7 (#225)

This commit is contained in:
Oren Milman 2017-03-14 19:35:27 +02:00 committed by Brett Cannon
parent 24cd02b34c
commit 1085515c33
1 changed files with 2 additions and 1 deletions

View File

@ -127,8 +127,9 @@ Code lay-out
if (type->tp_dictoffset != 0 && base->tp_dictoffset == 0 &&
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 */
}
* Put blank lines around functions, structure definitions, and major
sections inside functions.