From 951ac237445a848e02d0e524f5731f09e468196e Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 1 Jun 2017 18:18:30 -0400 Subject: [PATCH] Braces are required. Closes #279 --- pep-0007.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pep-0007.txt b/pep-0007.txt index 245de9bffbd..6007298e2ce 100644 --- a/pep-0007.txt +++ b/pep-0007.txt @@ -91,8 +91,9 @@ Code lay-out * Code structure: one space between keywords like ``if``, ``for`` and 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:: + required everywhere, even where C permits them to be omitted, but do + not add them to code you are not otherwise modifying. All new C + code requires braces. Braces should be formatted as shown:: if (mro != NULL) { ...