MCPcopy Index your code
hub / github.com/python/cpython / _is_translator_comment

Method _is_translator_comment

Tools/i18n/pygettext.py:579–580  ·  view source on GitHub ↗
(self, comment)

Source from the content-addressed store, hash-verified

577 return comments[first_index:]
578
579 def _is_translator_comment(self, comment):
580 return comment.startswith(self.options.comment_tags)
581
582 def _add_message(
583 self, lineno, msgid, msgid_plural=None, msgctxt=None, *,

Callers 1

_extract_commentsMethod · 0.95

Calls 1

startswithMethod · 0.45

Tested by

no test coverage detected