Skip to content

Avoid warnings for using 'is' with literals in python 3.8+ #331

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

Closed
wants to merge 1 commit into from

Conversation

peteward
Copy link
Contributor

@peteward peteward commented Jul 7, 2022

Description of changes:

I'm currently seeing this in our Cloudwatch logs:

Screenshot 2022-07-07 at 06 06 22

This is due to a change in python 3.8 that now reports syntax warnings for this use of is.

This PR updates mqtt_connection_builder.py to avoid warnings for using is with literals in comparisons for python 3.8+

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@TwistedTwigleg
Copy link
Contributor

Thank you for making this PR and letting us know of this change! We merged it in #335 🙂

Thanks again! Closing this PR...

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.

2 participants