def split_file(file_dict):
    'Split VCS and editable dependencies out from file.'
    sections = {'vcs': is_vcs, 'editable': (lambda x: (hasattr(x, 'keys') and x.get('editable')))}
    for (k, func) in sections.items():
        file_dict = split_section(file_dict, k, func)
    return file_dict
Split VCS and editable dependencies out from file.
def split_file(file_dict):
    
    sections = {'vcs': is_vcs, 'editable': (lambda x: (hasattr(x, 'keys') and x.get('editable')))}
    for (k, func) in sections.items():
        file_dict = split_section(file_dict, k, func)
    return file_dict