Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def generate():
with open('tests/fixtures/pace.txt', 'r', encoding='utf-8') as fh:
for line in fh:
yield Text(text=line, languages=['en'])