From 50b3ff664665a6186d6d82364a0845d544ec8fac Mon Sep 17 00:00:00 2001 From: Ryan Snyder Date: Sat, 13 Oct 2018 02:57:25 -0400 Subject: api: more stable PossibleValueSet __repr__ output --- python/function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/function.py') 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 "" % ', '.join([repr(i) for i in self.table]) if self.type == RegisterValueType.InSetOfValues: - return "" % '[{}]'.format(', '.join(hex(i) for i in self.values)) + return "" % '[{}]'.format(', '.join(hex(i) for i in sorted(self.values))) if self.type == RegisterValueType.NotInSetOfValues: - return "" % '[{}]'.format(', '.join(hex(i) for i in self.values)) + return "" % '[{}]'.format(', '.join(hex(i) for i in sorted(self.values))) if self.type == RegisterValueType.ReturnAddressValue: return "" return "" -- cgit v1.3.1