jmespath / jmespath.py

JMESPath is a query language for JSON.
http://jmespath.org
MIT License
2.19k stars 181 forks source link

fix cpython 3.8+ syntax warnings #185

Closed pmp-p closed 4 years ago

pmp-p commented 5 years ago

SyntaxWarning: "is" with a literal. Did you mean "=="?

The is operator tests for object identity, not equality. Python makes no promises about object identity of literals . -- Steven D'Aprano

gene1wood commented 4 years ago

This PR addresses #187 just as PR #188 does

jamesls commented 4 years ago

Thanks for the PR! I've merged https://github.com/jmespath/jmespath.py/pull/188 which adds support for py38 support.