Update PEP 7 to strongly encourage curly braces with conditional
statements.
This commit is contained in:
parent
70cff256c5
commit
7c2c1021ef
|
@ -75,9 +75,9 @@ Code lay-out
|
||||||
}
|
}
|
||||||
|
|
||||||
* Code structure: one space between keywords like ``if``, ``for`` and
|
* Code structure: one space between keywords like ``if``, ``for`` and
|
||||||
the following left paren; no spaces inside the paren; braces may be
|
the following left paren; no spaces inside the paren; braces are
|
||||||
omitted where C permits but when present, they should be formatted
|
strongly preferred but may be omitted where C permits, and they
|
||||||
as shown::
|
should be formatted as shown::
|
||||||
|
|
||||||
if (mro != NULL) {
|
if (mro != NULL) {
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue