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

Method add_location

Tools/i18n/pygettext.py:431–438  ·  view source on GitHub ↗
(self, filename, lineno, msgid_plural=None, *,
                     is_docstring=False, comments=None)

Source from the content-addressed store, hash-verified

429 comments: list[str] = field(default_factory=list)
430
431 def add_location(self, filename, lineno, msgid_plural=None, *,
432 is_docstring=False, comments=None):
433 if self.msgid_plural is None:
434 self.msgid_plural = msgid_plural
435 self.locations.add(Location(filename, lineno))
436 self.is_docstring |= is_docstring
437 if comments:
438 self.comments.extend(comments)
439
440
441def get_source_comments(source):

Callers 1

_add_messageMethod · 0.80

Calls 3

LocationClass · 0.85
addMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected