Commit b2848a10 authored by Henri Payno's avatar Henri Payno
Browse files

[xasobj] fix comparaison with None

parent 76edcdd2
......@@ -450,6 +450,8 @@ class XASObject:
return res
def __eq__(self, other):
if other is None:
return False
return (
isinstance(other, XASObject)
and (
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment