Return data[key] if it's a string, else empty string.
(data, key)
| 516 | |
| 517 | |
| 518 | def get_str(data, key): |
| 519 | """Return data[key] if it's a string, else empty string.""" |
| 520 | if not isinstance(data, dict): |
| 521 | return "" |
| 522 | val = data.get(key) |
| 523 | return val if isinstance(val, str) else "" |
| 524 | |
| 525 | |
| 526 | def count_per_bug_field(bugs_list, field): |
no outgoing calls
no test coverage detected