Update PEP 7 to strongly encourage curly braces with conditional

statements.
This commit is contained in:
Brett Cannon 2016-01-20 19:19:42 -08:00
parent 70cff256c5
commit 7c2c1021ef
1 changed files with 3 additions and 3 deletions

View File

@ -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) {
... ...