Skip to content

Commit

Permalink
add curly braces to a single-line if block example in PEP 7 (python#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
orenmn authored and brettcannon committed Mar 14, 2017
1 parent 24cd02b commit 1085515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pep-0007.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1085515

Please sign in to comment.