Returns a section matched by the possible title, or None if none match. Args: possible_title: A string that may be the title of a new section. Returns: A Section type if one matches, or None if no section type matches.
(possible_title)
| 637 | |
| 638 | |
| 639 | def _section_from_possible_title(possible_title): |
| 640 | """Returns a section matched by the possible title, or None if none match. |
| 641 | |
| 642 | Args: |
| 643 | possible_title: A string that may be the title of a new section. |
| 644 | Returns: |
| 645 | A Section type if one matches, or None if no section type matches. |
| 646 | """ |
| 647 | for section in SECTION_TITLES: |
| 648 | if _matches_section(possible_title, section): |
| 649 | return section |
| 650 | return None |
| 651 | |
| 652 | |
| 653 | def _google_section(line_info): |
no test coverage detected