Skip to content
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

remove Python 2 compatibility shims and casts #14989

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

beniwohli
Copy link
Contributor

If we don't want to support both Python 2 and Python 3 at the same time, a lot of compatibility shims and casts from iterators to lists can be avoided.

This PR is mostly based on regexing through #14798 and removing unnecessary changes. I tried to avoid introducing new changes.

Disclaimer: I wasn't able to run the test suite yet to make sure this doesn't introduce more errors than the parent PR. Hence the draft status.

@beniwohli
Copy link
Contributor Author

@kvch @jsoriano I have a hard time running the tests, so can't really say if this is introducing any new failures. Does one of you have the tests running and could check real quick if there aren't any regressions with these changes?

@kvch
Copy link
Contributor

kvch commented Dec 10, 2019

I think it's OK to merge it as is. I skimmed through the CI jobs, everything looks good. It is a good step forward, we can still regressions later if any is introduced by this PR.

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

Yeah, I agree, I think this can be merged. Thanks @beniwohli!

@beniwohli beniwohli marked this pull request as ready for review December 10, 2019 10:02
@beniwohli beniwohli requested review from a team as code owners December 10, 2019 10:02
@beniwohli beniwohli merged commit 8d9ce27 into elastic:feature/python3 Dec 10, 2019
@beniwohli beniwohli deleted the python2-cleanup branch December 10, 2019 10:04
@jsoriano jsoriano mentioned this pull request Dec 10, 2019
63 tasks
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants