(raw)
| 125 | |
| 126 | |
| 127 | def prepare_raw_key(raw): |
| 128 | if isinstance(raw, KeySet): |
| 129 | return raw |
| 130 | |
| 131 | if isinstance(raw, str) and raw.startswith("{") and raw.endswith("}"): |
| 132 | raw = json_loads(raw) |
| 133 | elif isinstance(raw, (tuple, list)): |
| 134 | raw = {"keys": raw} |
| 135 | return raw |
| 136 | |
| 137 | |
| 138 | def find_encode_key(key, header): |
no test coverage detected
searching dependent graphs…