Get attribute value using case-insensitive key lookup.
(attributes, key, default="")
| 550 | |
| 551 | |
| 552 | def get_case_insensitive_attr(attributes, key, default=""): |
| 553 | """Get attribute value using case-insensitive key lookup.""" |
| 554 | for attr_key, attr_value in attributes.items(): |
| 555 | if attr_key.lower() == key.lower(): |
| 556 | return attr_value |
| 557 | return default |
| 558 | |
| 559 | |
| 560 | def parse_is_adult(value): |
no outgoing calls
no test coverage detected