We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ddeca3 commit 8deb28eCopy full SHA for 8deb28e
terml/nodes.py
@@ -28,6 +28,9 @@ def __iter__(self):
28
29
def __eq__(self, other):
30
try:
31
+ if self.tag.name == ".bag." and other.tag.name == ".bag.":
32
+ return (self.data, set(self.args)
33
+ ) == (other.data, set(other.args))
34
return ( self.tag, self.data, self.args
35
) == (other.tag, other.data, other.args)
36
except AttributeError:
@@ -86,6 +89,8 @@ def __cmp__(self, other):
86
89
datac = cmp(self.data, other.data)
87
90
if datac:
88
91
return datac
92
93
+ return cmp(set(self.args), set(other.args))
94
return cmp(self.args, other.args)
95
96
def __int__(self):
0 commit comments