Skip to content
Snippets Groups Projects
Commit 3d435670 authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

Merge branch 'patch-1' into 'master'

Implement DataObjectHandleBase comparison with None.

See merge request !358
parents 4d7f3c7f 72d410c7
No related branches found
No related tags found
1 merge request!358Implement DataObjectHandleBase comparison with None.
Pipeline #
......@@ -21,6 +21,8 @@ class DataObjectHandleBase(object):
return self.Path == other.Path
if isinstance(other, basestring):
return self.Path == other
if other is None:
return False
raise ValueError('Unknown equality check: type=%r, repr=%r'%(type(other), other))
def __ne__(self, other):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment