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: ...@@ -450,6 +450,8 @@ class XASObject:
return res return res
def __eq__(self, other): def __eq__(self, other):
if other is None:
return False
return ( return (
isinstance(other, XASObject) isinstance(other, XASObject)
and ( 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