def valid_config_param(self, param_name, cleanup=False):
if cleanup:<EOL><INDENT>valid_config_params = [<EOL>_<EOL>for _ in self.i3status_module_names<EOL>if _ not in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT:time>"]<EOL>]<EOL><DEDENT>else:<EOL><INDENT>valid_config_params = self.i3status_module_names + ["<STR_LIT>", "<STR_LIT>"]<EOL><DEDENT>return param_name.split("<STR_LIT:U+0020>")[<NUM_LIT:0>] in valid_config_params<EOL>
Check if a given section name is a valid parameter for i3status.