Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

docs(samples): fixing file saving for local documents translation #419

Merged
merged 2 commits into from
Sep 1, 2022
Merged

docs(samples): fixing file saving for local documents translation #419

merged 2 commits into from
Sep 1, 2022

Conversation

lucianommartins
Copy link
Contributor

A proposed PR to fix #418.

The bug happens because f.write() (at line 46) is trying to write to a file a list-like object instead of its contents.

If the object contents is used, instead of the object, the issue is gone and the local file is properly created.

Fixes #418

@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: translate Issues related to the googleapis/python-translate API. labels Jul 28, 2022
Copy link
Contributor Author

@lucianommartins lucianommartins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A proposed PR to fix #418.

@parthea parthea added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Aug 30, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 30, 2022
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Aug 30, 2022
@parthea parthea changed the title fixing file saving for local documents translation docs(samples): fixing file saving for local documents translation Sep 1, 2022
@parthea parthea merged commit 49bd707 into googleapis:main Sep 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: translate Issues related to the googleapis/python-translate API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

translate_v3beta1_translate_document.py fails to save translation to a local file
3 participants