From 0c9eb44952d21951620a9a6765ecf5f95e89ada1 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 6 Nov 2017 04:12:39 +0100 Subject: Rename variable from 'add_fn' to 'append' --- kconfiglib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index 9515e43..89ca65a 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1936,7 +1936,7 @@ class Kconfig(object): config_strings = [] # Small optimization - add_fn = config_strings.append + append = config_strings.append while 1: if isinstance(node.item, Symbol): @@ -1944,14 +1944,14 @@ class Kconfig(object): if not sym._already_written: config_string = sym.config_string if config_string: - add_fn(config_string) + append(config_string) sym._already_written = True elif expr_value(node.dep) and \ ((node.item == MENU and expr_value(node.visibility)) or node.item == COMMENT): - add_fn("\n#\n# {}\n#\n".format(node.prompt[0])) + append("\n#\n# {}\n#\n".format(node.prompt[0])) # Iterative tree walk using parent pointers -- cgit v1.2.3