mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
5 lines
215 B
Python
5 lines
215 B
Python
def extract(fileobj, *args, **kwargs):
|
|
"""Split file into lines and yield one translation unit per line."""
|
|
for line_no, line in enumerate(fileobj.readlines()):
|
|
yield line_no + 1, "_", line.decode().strip(), []
|