From a4a2d163e1b372e48915975ae3428a7ccdd39c1b Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 17 Feb 2018 02:26:45 -0500 Subject: For Python, display set of values in hex format. --- 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 664afcd0..39ace7c6 100644 --- a/python/function.py +++ b/python/function.py @@ -225,9 +225,9 @@ class PossibleValueSet(object): if self.type == RegisterValueType.LookupTableValue: return "" % ', '.join([repr(i) for i in self.table]) if self.type == RegisterValueType.InSetOfValues: - return "" % repr(self.values) + return "" % '[{}]'.format(', '.join(hex(i) for i in self.values)) if self.type == RegisterValueType.NotInSetOfValues: - return "" % repr(self.values) + return "" % '[{}]'.format(', '.join(hex(i) for i in self.values)) if self.type == RegisterValueType.ReturnAddressValue: return "" return "" -- cgit v1.3.1