Return a list of comment texts or an empty list.
(self, xml=None)
| 757 | return [attr.strip() for attr in attrs if attr and attr.strip()] |
| 758 | |
| 759 | def _get_comments(self, xml=None): |
| 760 | """Return a list of comment texts or an empty list.""" |
| 761 | if xml is None: |
| 762 | xml = self.pom_data |
| 763 | comments = [c.text for c in xml.xpath('//comment()')] |
| 764 | return [c.strip() for c in comments if c and c.strip()] |
| 765 | |
| 766 | def _find_licenses(self): |
| 767 | """Return an iterable of license mappings.""" |