MCPcopy Index your code
hub / github.com/RustPython/RustPython / update_translation_snapshots

Function update_translation_snapshots

Lib/test/support/i18n_helper.py:59–63  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

57
58
59def update_translation_snapshots(module):
60 contents = _generate_po_file(module.__file__)
61 msgids = _extract_msgids(contents)
62 snapshot_path = _get_snapshot_path(module.__name__)
63 snapshot_path.write_text('\n'.join(msgids))

Callers 3

test_argparse.pyFile · 0.90
test_getopt.pyFile · 0.90
test_optparse.pyFile · 0.90

Calls 5

_generate_po_fileFunction · 0.85
_extract_msgidsFunction · 0.85
_get_snapshot_pathFunction · 0.85
write_textMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected