(relpath, regex=rex)
| 13 | |
| 14 | |
| 15 | def regex_matches(relpath, regex=rex): |
| 16 | p = pathlib.Path(relpath) |
| 17 | assert p.exists() |
| 18 | for line in open(str(p)): |
| 19 | m = regex.match(line) |
| 20 | if m is not None: |
| 21 | return m |
| 22 | |
| 23 | |
| 24 | def read_toml_version(relpath): |
no test coverage detected