Project Name: dbcli+mycli
Language: Python
Statement Type: API

Source Code:
def read_config_files(files, list_values=True):
    """Read and merge a list of config files."""

    config = create_default_config(list_values=list_values)
    _files = copy(files)
    while _files:
        _file = _files.pop(0)
        _config = read_config_file(_file, list_values=list_values)

        # expand includes only if we were able to parse config
        # (otherwise we'll just encounter the same errors again)
        if config is not None:
            _files = get_included_configs(_file) + _files
        if bool(_config) is True:
            config.merge(_config)
            config.filename = _config.filename

    return config

read_config_files(files=['/etc/myclirc', '/home/jinjun/.config/mycli/myclirc', '~/.myclirc', '/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc'], list_values=True)

Selected Statement: _files = copy(files)

Function Input:
files: /etc/myclirc
/home/jinjun/.config/mycli/myclirc
~/.myclirc
/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc
list_values: True

Variable Values Before Statement:
files: /etc/myclirc
/home/jinjun/.config/mycli/myclirc
~/.myclirc
/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc

Value After Statement Execution: /etc/myclirc
/home/jinjun/.config/mycli/myclirc
~/.myclirc
/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc

Variable States During Runtime (line, value):
files: 1
/etc/myclirc
/home/jinjun/.config/mycli/myclirc
~/.myclirc
/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc
list_values: 1
True
config: 4
ConfigObj({'main': {'smart_completion': 'True', 'multi_line': 'False', 'destructive_warning': 'True', 'log_file': '~/.mycli.log', 'log_level': 'INFO', 'timing': 'True', 'beep_after_seconds': '0', 'table_format': 'ascii', 'syntax_style': 'default', 'key_bindings': 'emacs', 'wider_completion_menu': 'False', 'prompt': '\\t \\u@\\h:\\d> ', 'prompt_continuation': '->', 'less_chatty': 'False', 'login_path_as_host': 'False', 'auto_vertical_output': 'False', 'keyword_casing': 'auto', 'enable_pager': 'True', 'pager': 'less'}, 'colors': {'completion-menu.completion.current': 'bg:#ffffff #000000', 'completion-menu.completion': 'bg:#008888 #ffffff', 'completion-menu.meta.completion.current': 'bg:#44aaaa #000000', 'completion-menu.meta.completion': 'bg:#448888 #ffffff', 'completion-menu.multi-column-meta': 'bg:#aaffff #000000', 'scrollbar.arrow': 'bg:#003333', 'scrollbar': 'bg:#00aaaa', 'selected': '#ffffff bg:#6666aa', 'search': '#ffffff bg:#4444aa', 'search.current': '#ffffff bg:#44aa44', 'bottom-toolbar': 'bg:#222222 #aaaaaa', 'bottom-toolbar.off': 'bg:#222222 #888888', 'bottom-toolbar.on': 'bg:#222222 #ffffff', 'search-toolbar': 'noinherit bold', 'search-toolbar.text': 'nobold', 'system-toolbar': 'noinherit bold', 'arg-toolbar': 'noinherit bold', 'arg-toolbar.text': 'nobold', 'bottom-toolbar.transaction.valid': 'bg:#222222 #00ff5f bold', 'bottom-toolbar.transaction.failed': 'bg:#222222 #ff005f bold', 'output.header': '#00ff5f bold', 'output.odd-row': '', 'output.even-row': '', 'output.null': '#808080'}, 'favorite_queries': {}, 'alias_dsn': {}})
_files: 5
/etc/myclirc
/home/jinjun/.config/mycli/myclirc
~/.myclirc
/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc
7
/home/jinjun/.config/mycli/myclirc
~/.myclirc
/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc
7
~/.myclirc
/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc
7
/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc
7
_file: 7
'/etc/myclirc'
7
'/home/jinjun/.config/mycli/myclirc'
7
'~/.myclirc'
7
'/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/dbcli+mycli/dbcli+mycli/.myclirc'
_config: 8
ConfigObj({})
8
ConfigObj({'main': {'smart_completion': 'True', 'multi_line': 'False', 'destructive_warning': 'True', 'log_file': '~/.mycli.log', 'log_level': 'INFO', 'timing': 'True', 'beep_after_seconds': '0', 'table_format': 'ascii', 'syntax_style': 'default', 'key_bindings': 'emacs', 'wider_completion_menu': 'False', 'prompt': '\\t \\u@\\h:\\d> ', 'prompt_continuation': '->', 'less_chatty': 'False', 'login_path_as_host': 'False', 'auto_vertical_output': 'False', 'keyword_casing': 'auto', 'enable_pager': 'True', 'pager': 'less'}, 'colors': {'completion-menu.completion.current': 'bg:#ffffff #000000', 'completion-menu.completion': 'bg:#008888 #ffffff', 'completion-menu.meta.completion.current': 'bg:#44aaaa #000000', 'completion-menu.meta.completion': 'bg:#448888 #ffffff', 'completion-menu.multi-column-meta': 'bg:#aaffff #000000', 'scrollbar.arrow': 'bg:#003333', 'scrollbar': 'bg:#00aaaa', 'selected': '#ffffff bg:#6666aa', 'search': '#ffffff bg:#4444aa', 'search.current': '#ffffff bg:#44aa44', 'bottom-toolbar': 'bg:#222222 #aaaaaa', 'bottom-toolbar.off': 'bg:#222222 #888888', 'bottom-toolbar.on': 'bg:#222222 #ffffff', 'search-toolbar': 'noinherit bold', 'search-toolbar.text': 'nobold', 'system-toolbar': 'noinherit bold', 'arg-toolbar': 'noinherit bold', 'arg-toolbar.text': 'nobold', 'bottom-toolbar.transaction.valid': 'bg:#222222 #00ff5f bold', 'bottom-toolbar.transaction.failed': 'bg:#222222 #ff005f bold', 'output.header': '#00ff5f bold', 'output.odd-row': '', 'output.even-row': '', 'output.null': '#808080'}, 'favorite_queries': {}, 'alias_dsn': {}})
8
ConfigObj({})