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

Function _extract_msgids

Lib/test/support/i18n_helper.py:27–34  ·  view source on GitHub ↗
(po)

Source from the content-addressed store, hash-verified

25
26
27def _extract_msgids(po):
28 msgids = []
29 for msgid in msgid_pattern.findall(po):
30 msgid_string = ''.join(msgid_string_pattern.findall(msgid))
31 msgid_string = msgid_string.replace(r'\"', '"')
32 if msgid_string:
33 msgids.append(msgid_string)
34 return sorted(msgids)
35
36
37def _get_snapshot_path(module_name):

Callers 2

assertMsgidsEqualMethod · 0.85

Calls 4

findallMethod · 0.45
joinMethod · 0.45
replaceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…