Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the use of os.linesep so pyment works on windows. #57

Merged
merged 1 commit into from
Jun 8, 2018

Conversation

bryder
Copy link
Contributor

@bryder bryder commented Jun 6, 2018

The python file I/O routines correctly convert the line separators depending on the OS.

Python uses '\n' as the line separator internally for all OS's. It handles the conversion when you read and write a file in text mode.

I had to make one small change GoogledocTools because it was dropping the last raise clause due to how splitlines() works.

The tests run on linux and windows. I do not have access to an osx machine.

This is essentially an update to #25

The python file I/O routines correctly convert the line separators
depending on the OS.
@dadadel dadadel merged commit ecc8f29 into dadadel:master Jun 8, 2018
@dadadel
Copy link
Owner

dadadel commented Jun 8, 2018

Thanks for that job 👍

@bryder bryder deleted the windows_fix branch June 15, 2018 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants