summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-06-07 17:30:27 -0400
committerPeter LaFosse <peter@vector35.com>2017-06-07 17:30:27 -0400
commitf0d1697cd7e49fb3889106f03e724d633e660a5f (patch)
treeb4586a6baf09448df13d586c790b37b604842ab9 /python
parent4de25b0c1eecb50f137f2623793d1dea0081e8a0 (diff)
Allow ILRegister's to be compared properly
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index dfa7aaf6..c359a79c 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -57,6 +57,9 @@ class ILRegister(object):
def __repr__(self):
return self.name
+ def __eq__(self, other):
+ return self.info == other.info
+
class ILFlag(object):
def __init__(self, arch, flag):