Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/MDSplus/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def __deepcopy__(self, memo):

def __eq__(self, obj):
if isinstance(obj, (Tree,)):
return self.ctx == obj.ctx
return self.ctx.value == obj.ctx.value
return False

def __ne__(self, obj): return not self.__eq__(obj)
Expand Down Expand Up @@ -1047,7 +1047,7 @@ def setDefault(self, node):
old = self.default
if not isinstance(node, TreeNode):
raise TypeError('default node must be a TreeNode')
if not node.ctx == self.ctx:
if not node.ctx.value == self.ctx.value:
raise TypeError('TreeNode must be in same tree')
_exc.checkStatus(
_TreeShr._TreeSetDefaultNid(self.ctx,
Expand Down