def generate_bugs_file(url, output_file_path, columns_to_keep): print("Requesting bugs list in CSV format from https://bugzilla.yoctoproject.org/...") csv_bug_list = request_bug_list(url) print("Parsing data...") data = parse_data(csv_bug_list, columns_to_keep) print("Building table...") table = tabularize(data) write_to_file(output_file_path, table)
def generate_bugs_file(url, output_file_path, columns_to_keep): print "Requesting bugs list in CSV format from https://bugzilla.yoctoproject.org/..." csv_bug_list = request_bug_list(url) print "Parsing data..." data = parse_data(csv_bug_list, columns_to_keep) print "Building table..." table = tabularize(data) write_to_file(output_file_path, table)
def write_tabular(out_dir, file, header, body): table = [header] + body write_inc_file(out_dir, file, tabularize([header] + body))
def process_machines_table(csv_table): return tabularize(csv_table)