Skip to content

Use print() function in both Python 2 and Python 3 - #7384

Merged
htuch merged 1 commit into
envoyproxy:masterfrom
cclauss:patch-3
Jun 24, 2019
Merged

htuch merged 1 commit into
envoyproxy:masterfrom
cclauss:patch-3

Conversation

@cclauss

@cclauss cclauss commented Jun 24, 2019 •

Copy link
Copy Markdown
Contributor

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:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

@moderation

moderation commented Jun 24, 2019 •

Copy link
Copy Markdown
Contributor

While your making this change can you change the instances of Python 2 print in tools/stack_decode.py as well? Looks like you need to fix DCO too - see documentation.

Related to envoyproxy#4552

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: Christian Clauss [email protected]
Signed-off-by: cclauss <[email protected]>
@cclauss

cclauss commented Jun 24, 2019 •

Copy link
Copy Markdown
Contributor Author

You need to upgrade your version of DCO. The version of DCO that is currently in use does not detect commits made from GitHub web ui that contain valid Sign-off-by:

The changes to tools/stack_decode.py are in #7383 because this repo uses stalebot which means that complicated PRs like #5606 (comment) do not get merged but instead get purged.

@htuch htuch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@htuch
htuch merged commit 2a31ba2 into envoyproxy:master Jun 24, 2019
@cclauss
cclauss deleted the patch-3 branch June 25, 2019 05:19
htuch pushed a commit that referenced this pull request Jun 27, 2019
Blocked by: #7383, #7384, and #7385

Related to: #4552 #7322 

Signed-off-by: cclauss [email protected]

Also adds more critical flake8 tests.

Signed-off-by: cclauss <[email protected]>
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.

3 participants