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

Function _generate_po_file

Lib/test/support/i18n_helper.py:17–24  ·  view source on GitHub ↗
(path, *, stdout_only=True)

Source from the content-addressed store, hash-verified

15
16
17def _generate_po_file(path, *, stdout_only=True):
18 res = subprocess.run([sys.executable, pygettext,
19 '--no-location', '-o', '-', path],
20 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
21 text=True)
22 if stdout_only:
23 return res.stdout
24 return res
25
26
27def _extract_msgids(po):

Callers 2

assertMsgidsEqualMethod · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected