Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix newline windows issue in generate_csv (#675)
Summary: Fixes #674 ### Changes updated tutorial in documentation to specify the newline explitly `writer = csv.DictWriter(open(f"sample_data{file_label}.csv", "w", newline=''), fieldnames=fieldnames)` instead of: `writer = csv.DictWriter(open(f"sample_data{file_label}.csv", "w"), fieldnames=fieldnames)` ## Testing - tested by running the generate_csv function before and after on a windows machine, before was creating newlines between lines and throwing errors, after the created files don't have newlines and full tutorial works Pull Request resolved: #675 Reviewed By: ejguan Differential Revision: D38116301 Pulled By: NivekT fbshipit-source-id: 1885c40cdc739ca70c5236e983389d88f662b2d4
- Loading branch information