MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / _get_comments

Method _get_comments

src/packagedcode/maven.py:759–764  ·  view source on GitHub ↗

Return a list of comment texts or an empty list.

(self, xml=None)

Source from the content-addressed store, hash-verified

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."""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected