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
|
||||
the following left paren; no spaces inside the paren; braces may be
|
||||
omitted where C permits but when present, they should be formatted
|
||||
as shown::
|
||||
the following left paren; no spaces inside the paren; braces are
|
||||
strongly preferred but may be omitted where C permits, and they
|
||||
should be formatted as shown::
|
||||
|
||||
if (mro != NULL) {
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue