(value)
| 15759 | candidate_name = uname_norm |
| 15760 | |
| 15761 | def _extract_location_text(value): |
| 15762 | if isinstance(value, dict): |
| 15763 | for key in ("city", "city_name", "town", "state", "country", "location", "name", "full", "formatted", "address", "value", "text"): |
| 15764 | txt = _extract_text_scalar(value.get(key)) |
| 15765 | if txt and txt.lower() != "n/a": |
| 15766 | return txt |
| 15767 | for v in ("city", "city_name", "state", "country"): |
| 15768 | vv = value.get(v) |
| 15769 | if vv: |
| 15770 | return str(vv) |
| 15771 | return _extract_text_scalar(value) |
| 15772 | |
| 15773 | def _strip_html(raw): |
| 15774 | if not isinstance(raw, str): |
nothing calls this directly
no outgoing calls
no test coverage detected