bpo-35798: Fix duplicate SyntaxWarning: "is" with a literal. by serhiy-storchaka · Pull Request #11639 · python/cpython

Conversation

jwilk

Choose a reason for hiding this comment

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

I don't quite understand the code, but I confirm that this change fixes the symptoms for me.

vstinner

Choose a reason for hiding this comment

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

Would it be possible to add an unit test?

Labels