Repository navigation
Fix next(), print(), and raw_input() to work in Python 2 and 3 - #5599
Merged
Merged
Conversation
cclauss
force-pushed
the
modernize-Python-2-codes
branch
from
January 14, 2019 18:52
b05dc82 to
dc414f2
Compare
htuch
requested changes
Jan 14, 2019
Member
There was a problem hiding this comment.
Can you be consistent in putting a separating blank line between the __future__ imports and the rest? I think the space makes sense, but it's not done everywhere.
Member
There was a problem hiding this comment.
I think the scope of this PR is more than just print, it seems general Python 3 compat, can you update the description?
…hon 3 Legacy __print__ statements are syntax errors in Python 3 but __print()__ function works as expected in both Python 2 and Python 3. Signed-off-by: cclauss <[email protected]>
cclauss
force-pushed
the
modernize-Python-2-codes
branch
from
January 15, 2019 08:12
93bb9a0 to
b3ab77e
Compare
This was referenced Jan 15, 2019
Closed
fredlas
pushed a commit
to fredlas/envoy
that referenced
this pull request
Mar 5, 2019
…hon 3 (envoyproxy#5599) Legacy print statements are syntax errors in Python 3 but print() function works as expected in both Python 2 and Python 3. Resolves syntax errors and name errors that have the potential to halt the runtime. Risk Level: Minimal Testing: http://flake8.pycqa.org Signed-off-by: cclauss <[email protected]> Signed-off-by: Fred Douglas <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #4552
Legacy print statements are syntax errors in Python 3 but print() function works as expected in both Python 2 and Python 3.
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description: Resolves syntax errors and name errors that have the potential to halt the runtime.
Risk Level: Minimal
Testing: http://flake8.pycqa.org
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]