-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
build: import StringIO on both Python 2 and Python 3 #1836
Conversation
This change supports access to StringIO on both Python 2 and Python 3
e7b38e0
to
c3f12dc
Compare
|
@@ -8,7 +8,6 @@ | |||
|
|||
import gyp.generator.ninja as ninja | |||
import unittest | |||
import StringIO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it not need to be replaced here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, looks like it isn't actually used here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm.
This change supports access to StringIO on both Python 2 and Python 3 PR-URL: #1836 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: João Reis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSLGTM, confirmed this fixes one of the Windows errors.
CI: https://ci.nodejs.org/view/All/job/nodegyp-test-pull-request/150/ Landed in 5459eca. @cclauss I've squashed both commits, please let me know if I made a mistake. Thanks! |
This change supports access to StringIO on both Python 2 and Python 3 PR-URL: #1836 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: João Reis <[email protected]>
This change supports access to StringIO on both Python 2 and Python 3. Without this change the import fails on Python 3.
Checklist
npm install && npm test
passesDescription of change