From 2320b7adb703c22e44ec9716a0d2605e80a02783 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 25 Aug 2018 23:22:40 +0200 Subject: oldconfig: Use Kconfig.node_iter() and clean up Some general cleanup: - Handle the iteration with the new Kconfig.node_iter() helper. This makes some function so short that they become pointless. Have just main() + oldconfig(node) + small helper functions. - Use _name_and_loc_str(sc) for choices too, so that all locations get reported for named choices defined in multiple locations - Rewrite the intro to be less wordy and remove the sample session (leftover from when oldconfig.py was in examples/, and not that exciting) - Print "Updated configuration written to..." instead of "Configuration saved to..." - Various other nits --- menuconfig.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'menuconfig.py') diff --git a/menuconfig.py b/menuconfig.py index ee79864..25047f3 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -268,10 +268,7 @@ def _expr_str(expr): # Custom expression printer that shows symbol values return expr_str(expr, _name_and_val_str) - -# Entry point when run as an executable, split out so that setuptools' -# 'entry_points' can be used. It produces a handy menuconfig.exe launcher on -# Windows. +# Note: Used as the entry point in setup.py def _main(): menuconfig(standard_kconfig()) -- cgit v1.2.3