Yield AuthorDetection objects detected in the CREDITS file at ``location``.
(location)
| 69 | |
| 70 | |
| 71 | def detect_credits_authors(location): |
| 72 | """ |
| 73 | Yield AuthorDetection objects detected in the CREDITS file at ``location``. |
| 74 | """ |
| 75 | if not is_credits_file(location): |
| 76 | return |
| 77 | |
| 78 | from textcode.analysis import numbered_text_lines |
| 79 | |
| 80 | numbered_lines = list(numbered_text_lines(location, demarkup=False)) |
| 81 | yield from detect_credits_authors_from_lines(numbered_lines) |
| 82 | |
| 83 | |
| 84 | def detect_credits_authors_from_lines(numbered_lines): |
no test coverage detected