|
@@ 293-303 (lines=11) @@
|
| 290 |
|
return remove_section_keys(file_contents, yaml_contents, section, empty_identifiers) |
| 291 |
|
|
| 292 |
|
|
| 293 |
|
def fix_empty_reference(file_contents, yaml_contents): |
| 294 |
|
section = 'references' |
| 295 |
|
|
| 296 |
|
empty_identifiers = [] |
| 297 |
|
|
| 298 |
|
if yaml_contents[section] is not None: |
| 299 |
|
for i_type, i_value in yaml_contents[section].items(): |
| 300 |
|
if str(i_value).strip() == "": |
| 301 |
|
empty_identifiers.append(i_type) |
| 302 |
|
|
| 303 |
|
return remove_section_keys(file_contents, yaml_contents, section, empty_identifiers) |
| 304 |
|
|
| 305 |
|
|
| 306 |
|
def fix_prefix_cce(file_contents, yaml_contents): |
|
@@ 281-290 (lines=10) @@
|
| 278 |
|
rewrite_value_int_str) |
| 279 |
|
|
| 280 |
|
|
| 281 |
|
def fix_empty_identifier(file_contents, yaml_contents): |
| 282 |
|
section = 'identifiers' |
| 283 |
|
|
| 284 |
|
empty_identifiers = [] |
| 285 |
|
if yaml_contents[section] is not None: |
| 286 |
|
for i_type, i_value in yaml_contents[section].items(): |
| 287 |
|
if str(i_value).strip() == "": |
| 288 |
|
empty_identifiers.append(i_type) |
| 289 |
|
|
| 290 |
|
return remove_section_keys(file_contents, yaml_contents, section, empty_identifiers) |
| 291 |
|
|
| 292 |
|
|
| 293 |
|
def fix_empty_reference(file_contents, yaml_contents): |