@@ 376-386 (lines=11) @@ | ||
373 | return remove_section_keys(file_contents, yaml_contents, section, empty_identifiers) |
|
374 | ||
375 | ||
376 | def fix_empty_reference(file_contents, yaml_contents): |
|
377 | section = 'references' |
|
378 | ||
379 | empty_identifiers = [] |
|
380 | ||
381 | if yaml_contents[section] is not None: |
|
382 | for i_type, i_value in yaml_contents[section].items(): |
|
383 | if str(i_value).strip() == "": |
|
384 | empty_identifiers.append(i_type) |
|
385 | ||
386 | return remove_section_keys(file_contents, yaml_contents, section, empty_identifiers) |
|
387 | ||
388 | ||
389 | def fix_prefix_cce(file_contents, yaml_contents): |
|
@@ 364-373 (lines=10) @@ | ||
361 | rewrite_value_int_str) |
|
362 | ||
363 | ||
364 | def fix_empty_identifier(file_contents, yaml_contents): |
|
365 | section = 'identifiers' |
|
366 | ||
367 | empty_identifiers = [] |
|
368 | if yaml_contents[section] is not None: |
|
369 | for i_type, i_value in yaml_contents[section].items(): |
|
370 | if str(i_value).strip() == "": |
|
371 | empty_identifiers.append(i_type) |
|
372 | ||
373 | return remove_section_keys(file_contents, yaml_contents, section, empty_identifiers) |
|
374 | ||
375 | ||
376 | def fix_empty_reference(file_contents, yaml_contents): |