Skip to content

python: avoid equality check for None

Thomas H.P. Andersen requested to merge phomes/glib:python-none-equality into master

PEP8 says that: "Comparisons to singletons like None should always be done with is or is not, never the equality operators."

glib uses a mix of "== None" and "is None". This patch changes all cases to the latter.

Merge request reports