-
Notifications
You must be signed in to change notification settings - Fork 767
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
[READY] Adding new python-future dependency #332
Conversation
da3291f
to
76f3327
Compare
Grr, another flaky failure. This time with omnisharp returning a 500. |
Reviewed 5 of 5 files at r1. ycmd/responses.py, line 21 [r1] (raw file): ycmd/responses.py, line 22 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 2 unresolved discussions. ycmd/responses.py, line 21 [r1] (raw file): I was thinking we might want to always have the I wouldn't do this for anything but the Python 3 compatibility layer. I'm worried that if we only import the parts of the shim layer that are used in the file, someone's going to change something in it which would work on one version of Python but break on another, and if we're lucky Travis would catch it. It's one thing to remember "I have to import the So I think the shim layer might be a special case; what do the rest of you think? We need to decide how we're going to be doing this codebase-wide. Comments from the review on Reviewable.io |
Reviewed 5 of 5 files at r1. ycmd/responses.py, line 21 [r1] (raw file):
ycmd/responses.py, line 22 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 2 unresolved discussions. ycmd/responses.py, line 21 [r1] (raw file): And no test would catch a missing dict import since everything would still work (just slower on py2). I really think we need to import everything in all files. Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 2 unresolved discussions. ycmd/responses.py, line 21 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 1 unresolved discussion. ycmd/responses.py, line 21 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 1 unresolved discussion. ycmd/responses.py, line 21 [r1] (raw file): Comments from the review on Reviewable.io |
ycmd/responses.py, line 21 [r1] (raw file): Comments from the review on Reviewable.io |
We'll use this for Python 3 compatibility. Also changed responses.py using futurize so that it uses a module from python-future to ensure the sys.path module pickup is working.
Review status: 4 of 5 files reviewed at latest revision, 1 unresolved discussion. ycmd/responses.py, line 21 [r1] (raw file): Comments from the review on Reviewable.io |
Reviewed 1 of 1 files at r2. Comments from the review on Reviewable.io |
@homu r+ Reviewed 1 of 1 files at r2. Comments from the review on Reviewable.io |
📌 Commit 25f8ce8 has been approved by |
[READY] Adding new python-future dependency We'll use this for Python 3 compatibility. Also changed responses.py using futurize so that it uses a module from python-future to ensure the sys.path module pickup is working. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/332) <!-- Reviewable:end -->
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. ycmd/responses.py, line 21 [r1] (raw file): Comments from the review on Reviewable.io |
Travis is clogged a bit and enough rows have finished successfully for me to consider it safe to merge this sans-homu. |
[READY] Adding new python-future dependency
We'll use this for Python 3 compatibility. Also changed responses.py
using futurize so that it uses a module from python-future to ensure the
sys.path module pickup is working.