From 6739f667288b18a5a9e2d7526510b0f11fe77e43 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 1 Jul 2019 02:05:37 +0200 Subject: Replace some if's with ifs in docs Was meant as not-a-literal-if, but it looks confusing. Piggyback a comment nit. --- kconfiglib.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index 571125b..2ef4619 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4050,7 +4050,7 @@ class Symbol(object): The direct ('depends on') dependencies for the symbol, or self.kconfig.y if there are no direct dependencies. - This attribute includes any dependencies from surrounding menus and if's. + This attribute includes any dependencies from surrounding menus and ifs. Those get propagated to the direct dependencies, and the resulting direct dependencies in turn get propagated to the conditions of all properties. @@ -4061,7 +4061,7 @@ class Symbol(object): A set() with all symbols and choices referenced in the properties and property conditions of the symbol. - Also includes dependencies from surrounding menus and if's, because those + Also includes dependencies from surrounding menus and ifs, because those get propagated to the symbol (see the 'Intro to symbol values' section in the module docstring). @@ -4764,8 +4764,8 @@ class Symbol(object): # symbols, so we skip invalidation for them as an optimization. # # This also prevents constant (quoted) symbols from being invalidated - # if set_value() is called on them, which would cause them to lose - # their value and break things. + # if set_value() is called on them, which would make them lose their + # value and break things. # # Prints a warning if the symbol has no prompt. In some contexts (e.g. # when loading a .config files) assignments to promptless symbols are @@ -4986,7 +4986,7 @@ class Choice(object): A set() with all symbols referenced in the properties and property conditions of the choice. - Also includes dependencies from surrounding menus and if's, because those + Also includes dependencies from surrounding menus and ifs, because those get propagated to the choice (see the 'Intro to symbol values' section in the module docstring). @@ -5398,7 +5398,7 @@ class MenuNode(object): The direct ('depends on') dependencies for the menu node, or self.kconfig.y if there are no direct dependencies. - This attribute includes any dependencies from surrounding menus and if's. + This attribute includes any dependencies from surrounding menus and ifs. Those get propagated to the direct dependencies, and the resulting direct dependencies in turn get propagated to the conditions of all properties. @@ -5416,7 +5416,7 @@ class MenuNode(object): A set() with all symbols and choices referenced in the properties and property conditions of the menu node. - Also includes dependencies inherited from surrounding menus and if's. + Also includes dependencies inherited from surrounding menus and ifs. Choices appear in the dependencies of choice symbols. is_menuconfig: -- cgit v1.2.3