diff options
| author | Ryan Snyder <ryan@vector35.com> | 2018-10-13 02:57:25 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2018-10-13 02:57:25 -0400 |
| commit | 50b3ff664665a6186d6d82364a0845d544ec8fac (patch) | |
| tree | fcfa63ac5bda23bda4ed6cb062e8a2c78d151eb3 /python/function.py | |
| parent | eb2a668056bd8a6b4eedb8bbe40e9129e085fc4c (diff) | |
api: more stable PossibleValueSet __repr__ output
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index 6da86196..3f908ef6 100644 --- a/python/function.py +++ b/python/function.py @@ -224,9 +224,9 @@ class PossibleValueSet(object): if self.type == RegisterValueType.LookupTableValue: return "<table: %s>" % ', '.join([repr(i) for i in self.table]) if self.type == RegisterValueType.InSetOfValues: - return "<in set(%s)>" % '[{}]'.format(', '.join(hex(i) for i in self.values)) + return "<in set(%s)>" % '[{}]'.format(', '.join(hex(i) for i in sorted(self.values))) if self.type == RegisterValueType.NotInSetOfValues: - return "<not in set(%s)>" % '[{}]'.format(', '.join(hex(i) for i in self.values)) + return "<not in set(%s)>" % '[{}]'.format(', '.join(hex(i) for i in sorted(self.values))) if self.type == RegisterValueType.ReturnAddressValue: return "<return address>" return "<undetermined>" |
