From c2414bdf64c03470061d280a7d1b5ea97bab3185 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 14 Dec 2019 17:15:57 +0100 Subject: Add a member function version of load_allconfig() There was no great reason for this function to be a global function to begin with. Having it as a member function simplifies callers. load_allconfig() is a bit special in that it fails with sys.exit(), which is helpful for tools, but that probably doesn't influence where it belongs. Keep the global function for backwards compatibility. A deprecation warning might be added at some point. --- alldefconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alldefconfig.py') diff --git a/alldefconfig.py b/alldefconfig.py index fab8385..b83919c 100755 --- a/alldefconfig.py +++ b/alldefconfig.py @@ -19,7 +19,7 @@ import kconfiglib def main(): kconf = kconfiglib.standard_kconfig(__doc__) - kconfiglib.load_allconfig(kconf, "alldef.config") + kconf.load_allconfig("alldef.config") print(kconf.write_config()) -- cgit v1.2.3