summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-10 08:46:28 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-10 08:46:28 +0100
commit8757ff9ae1d23499ed58ee8ea6f1fb578603d2c7 (patch)
tree92bf5406143916bdfcb207efabed6912e2881873
parent5c2a3458a51a78665adbebd3ce64d2ea0f95718d (diff)
Fix a few typos
Clean up some formatting a bit too.
-rw-r--r--examples/find_symbol.py4
-rw-r--r--examples/menuconfig.py4
-rw-r--r--kconfiglib.py4
-rw-r--r--testsuite.py7
4 files changed, 6 insertions, 13 deletions
diff --git a/examples/find_symbol.py b/examples/find_symbol.py
index 42677ec..63790c2 100644
--- a/examples/find_symbol.py
+++ b/examples/find_symbol.py
@@ -144,8 +144,8 @@ def node_references_sym(node, sym_name):
return expr_contains_sym(node.visibility, sym_name)
# Comments are already handled by searching the prompt condition, because
- # 'depends on' gets propagated to its condition. This is why we don't need
- # to look at the direct dependencies for MENU either.
+ # 'depends on' gets propagated to it. This is why we don't need to look at
+ # the direct dependencies for MENU either.
def nodes_referencing_sym(node, sym_name):
"""
diff --git a/examples/menuconfig.py b/examples/menuconfig.py
index 375b8c8..5452d50 100644
--- a/examples/menuconfig.py
+++ b/examples/menuconfig.py
@@ -218,8 +218,8 @@ def node_str(node):
def print_menuconfig_nodes(node, indent):
"""
- Prints a tree with all the menu entries rooted at node. Child menu entries
- are indented.
+ Prints a tree with all the menu entries rooted at 'node'. Child menu
+ entries are indented.
"""
while node:
string = node_str(node)
diff --git a/kconfiglib.py b/kconfiglib.py
index 07b9f81..afab7f9 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1977,8 +1977,8 @@ class Kconfig(object):
# fetched, so that symbols defined in multiple locations only get one
# .config entry. We reset it prior to writing out a new .config. It
# only needs to be reset for defined symbols, because undefined symbols
- # will never be written out (because they do not appear structure
- # rooted at Kconfig.top_node).
+ # will never be written out (because they do not appear in the menu
+ # tree rooted at Kconfig.top_node).
#
# The C tools reuse _write_to_conf for this, but we cache
# _write_to_conf together with the value and don't invalidate cached
diff --git a/testsuite.py b/testsuite.py
index 8ba0edc..8115847 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -116,7 +116,6 @@ def run_selftests():
"""
Verifies that a symbol has a particular value.
"""
-
if isinstance(val, int):
val = TRI_TO_STR[val]
@@ -131,7 +130,6 @@ def run_selftests():
'new_val'. Assumes (and tests) that 'val' is valid for the
symbol type.
"""
-
if isinstance(new_val, int):
new_val = TRI_TO_STR[new_val]
@@ -1645,7 +1643,6 @@ def run_compatibility_tests():
Runs tests on configurations from the kernel. Tests compability with the
C implementation by comparing outputs.
"""
-
os.environ.pop("ARCH", None)
os.environ.pop("SRCARCH", None)
os.environ.pop("srctree", None)
@@ -1747,7 +1744,6 @@ def test_all_no(conf, arch):
as 'make allnoconfig', for each architecture. Runs the script via
'make scriptconfig', so kinda slow even in speedy mode.
"""
-
# TODO: Support speedy mode for running the script
shell("make scriptconfig SCRIPT=Kconfiglib/examples/allnoconfig.py "
"PYTHONCMD='{}'".format(sys.executable))
@@ -1763,7 +1759,6 @@ def test_all_no_simpler(conf, arch):
.config as 'make allnoconfig', for each architecture. Runs the script via
'make scriptconfig', so kinda slow even in speedy mode.
"""
-
# TODO: Support speedy mode for running the script
shell("make scriptconfig SCRIPT=Kconfiglib/examples/allnoconfig_simpler.py "
"PYTHONCMD='{}'".format(sys.executable))
@@ -1779,7 +1774,6 @@ def test_all_yes(conf, arch):
as 'make allyesconfig', for each architecture. Runs the script via
'make scriptconfig', so kinda slow even in speedy mode.
"""
-
# TODO: Support speedy mode for running the script
shell("make scriptconfig SCRIPT=Kconfiglib/examples/allyesconfig.py "
"PYTHONCMD='{}'".format(sys.executable))
@@ -1943,7 +1937,6 @@ def test_defconfig(conf, arch):
With logging enabled, this test appends any failures to a file
test_defconfig_fails in the root.
"""
-
global nconfigs
defconfigs = []