Find one (or multiple) backend in a code line of the init.
(line)
| 48 | |
| 49 | |
| 50 | def find_backend(line): |
| 51 | """Find one (or multiple) backend in a code line of the init.""" |
| 52 | if _re_test_backend.search(line) is None: |
| 53 | return None |
| 54 | backends = [b[0] for b in _re_backend.findall(line)] |
| 55 | backends.sort() |
| 56 | return "_and_".join(backends) |
| 57 | |
| 58 | |
| 59 | def parse_init(init_file): |