Use ==/!= to compare constant literals (str, bytes, int, float, tuple)
authorChristian Clauss <cclauss@me.com>
Thu, 25 Nov 2021 11:44:21 +0000 (12:44 +0100)
committerChristian Clauss <cclauss@me.com>
Thu, 25 Nov 2021 14:39:58 +0000 (15:39 +0100)
commit9cc60c9dd32b5fa5f7bdd7991ed6610eb7c2a7ee
tree209ef85d7e60c5acff3cd1888566175d1eb2c55f
parent2c226d597d50bcc0352d2f71bfe6038324c2b1bd
Use ==/!= to compare constant literals (str, bytes, int, float, tuple)

Avoid `SyntaxWarning` on Python >= 3.8
```
>>> "convolutional" == "convolutional"
True
>>> "convolutional" is "convolutional"
<stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
True
```
Related to #21121
samples/dnn/tf_text_graph_ssd.py