From f0d1697cd7e49fb3889106f03e724d633e660a5f Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 7 Jun 2017 17:30:27 -0400 Subject: Allow ILRegister's to be compared properly --- python/lowlevelil.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') 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): -- cgit v1.3.1