(path, *, stdout_only=True)
| 15 | |
| 16 | |
| 17 | def _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 | |
| 27 | def _extract_msgids(po): |
no test coverage detected