Repository navigation
Define cmp() in Python 3 - #7385
Merged
Merged
Conversation
Related to envoyproxy#4552 __cmp()__ was removed in Python 3 so redefine it in accordance with https://portingguide.readthedocs.io/en/latest/comparisons.html#the-cmp-function Signed-off-by: Christian Clauss [email protected] Signed-off-by: cclauss <[email protected]>
htuch
reviewed
Jun 24, 2019
htuch
left a comment
Member
There was a problem hiding this comment.
@cclauss these contributions are appreciated, thanks. Can you please try and group them though to avoid tons of PRs? It's worth splitting up if these become O(1k) SLOC deltas, but otherwise I think we can group them temporally at least.
| try: | ||
| cmp | ||
| except NameError: | ||
|
|
Member
There was a problem hiding this comment.
Nit: Prefer not to have blank line here.
Contributor
Author
There was a problem hiding this comment.
Me too but the yapf tests fail without it.
htuch
approved these changes
Jun 26, 2019
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]>
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
cmp() was removed in Python 3 so redefine it in accordance with https://portingguide.readthedocs.io/en/latest/comparisons.html#the-cmp-function
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:]