From 7cdfe6dda5435e85aec2ab0410d58fcae6ae4071 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 7 Feb 2018 05:00:56 +0100 Subject: Give symbol locations in merge_config.py warnings Helpful for debugging. Piggyback some small fixes: - Don't imply that merge_config.py is an executable file or that it only runs under Python 3. Remove the hashbang line and fix the example in the overview. - Add some #'s to the overview .config files that had accidentally been left out. - Fix a questionable sentence in oldconfig.py's name_and_loc_str() docstring. --- examples/oldconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/oldconfig.py') diff --git a/examples/oldconfig.py b/examples/oldconfig.py index aa8e253..737ddae 100644 --- a/examples/oldconfig.py +++ b/examples/oldconfig.py @@ -60,7 +60,7 @@ # # $ touch .config # Run with empty .config # -# $ python oldconfig.py Kconfig +# $ python(3) oldconfig.py Kconfig # BOOL_SYM prompt (BOOL_SYM, defined at Kconfig:5) [n/Y] foo # Invalid tristate value # BOOL_SYM prompt (BOOL_SYM, defined at Kconfig:5) [n/Y] n @@ -118,7 +118,7 @@ def print_help(node): def name_and_loc_str(sym): """ Helper for printing the symbol name along with the location(s) in the - Kconfig files where it is defined + Kconfig files where the symbol is defined """ return "{}, defined at {}".format( sym.name, -- cgit v1.2.3