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

Set universal_newlines for renew-certs script #1246

Merged
merged 1 commit into from Oct 26, 2020

Conversation

swalkinshaw
Copy link
Member

Using universal_newlines is better for Python 2/3 compatibility since it will return a string and not bytes to ensure it's the same regardless of the version.

Using `universal_newlines` is better for Python 2/3 compatibility since
it will return a string and not bytes to ensure it's the same regardless
of the version.
@tangrufus
Copy link
Collaborator

tangrufus commented Oct 25, 2020

Should we move to subprocess.run instead?
See: https://stackoverflow.com/a/4760517

@swalkinshaw
Copy link
Member Author

Looks like that's python 3 only? Unfortunately this script is supposed to run in python 2 only (though apparently it may not, hence this PR).

See #1060 but it's confusing 😕

@swalkinshaw swalkinshaw merged commit e6be480 into master Oct 26, 2020
@swalkinshaw swalkinshaw deleted the renew-certs-set-universal_newlines branch October 26, 2020 23:17
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