diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-12-14 17:15:57 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-12-14 17:35:45 +0100 |
| commit | c2414bdf64c03470061d280a7d1b5ea97bab3185 (patch) | |
| tree | e7958a9b498b3271f3b27a8ca2cd359d0bd976dd /allnoconfig.py | |
| parent | 595eabcb624d9da1a7bb47365ca4f7a8e76fe44a (diff) | |
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.
Diffstat (limited to 'allnoconfig.py')
| -rwxr-xr-x | allnoconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/allnoconfig.py b/allnoconfig.py index 3d5ca4a..7016d8d 100755 --- a/allnoconfig.py +++ b/allnoconfig.py @@ -36,7 +36,7 @@ def main(): sym.set_value(2 if sym.is_allnoconfig_y else 0) kconf.warn = True - kconfiglib.load_allconfig(kconf, "allno.config") + kconf.load_allconfig("allno.config") print(kconf.write_config()) |
