Skip to content

Conversation

@Danori
Copy link
Contributor

@Danori Danori commented Apr 17, 2024

What changes were proposed in this pull request?

Resolves "is" and "is not" compiler warnings introduced in python 3.8 when comparing literals.
See https://discuss.python.org/t/demoting-the-is-operator-to-avoid-an-identity-crisis/86 for more details.

Before:
before

After:
after

How was this patch tested?

Manual test / validation in custom Rocky Linux 9 docker environment (planning on contributing support for Redhat 9 in the near future)

Please review Ambari Contributing Guide before opening a pull request.

Resolves "is" and "is not" compiler warnings introduced in python 3.8
when comparing literals.
See https://discuss.python.org/t/demoting-the-is-operator-to-avoid-an-identity-crisis/86
for more details.
@virajjasani
Copy link
Contributor

The changes look good overall. @JiaLiangC you also want to take a look?

@JiaLiangC
Copy link
Contributor

@virajjasani I encountered a similar warning message, and this modification looks good.

@wenwj0
Copy link
Contributor

wenwj0 commented Apr 18, 2024

Thanks @Danori, I encountered these warnings too. It appears in python 3.8+.

Copy link
Contributor

@virajjasani virajjasani left a comment

Choose a reason for hiding this comment

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

+1

@virajjasani
Copy link
Contributor

Thank you @JiaLiangC @Danori @wenwj0, merging the PR

@virajjasani virajjasani merged commit ed9a149 into apache:trunk Apr 18, 2024
@Danori Danori deleted the AMBARI-26070 branch April 18, 2024 18:32
@Danori
Copy link
Contributor Author

Danori commented Apr 18, 2024

Oh looks like my commit didn't follow the typical conventions; would you guys like me to amend my commit before we merge?

@Danori Danori restored the AMBARI-26070 branch April 18, 2024 19:29
@virajjasani
Copy link
Contributor

@Danori are you referring to (#2) reference in the commit?

@virajjasani
Copy link
Contributor

Looks like my bad, i did squash & merge, not sure why the PR title was not retained. Sorry about that.

@virajjasani
Copy link
Contributor

If you want to create the PR again, let me revert the commit first and then you can re-create the PR.

@virajjasani
Copy link
Contributor

Alright, I have taken care of this, no worries. Thank you everyone, once again!

@Danori Danori deleted the AMBARI-26070 branch April 25, 2024 13:54
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.

4 participants