summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2018-02-17 02:26:45 -0500
committerBrian Potchik <brian@vector35.com>2018-02-17 02:26:45 -0500
commitf5d8f94993452815fe68e1da9cb398bf4b7e5917 (patch)
tree6869febf49d8df14eae766dcd0f95bffb9030337 /python
parent73b3f7fc2ff9dab40f29da2031a0c6c71220d93c (diff)
For Python, display set of values in hex format.
Diffstat (limited to 'python')
-rw-r--r--python/function.py4
1 files changed, 2 insertions, 2 deletions
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 "<table: %s>" % ', '.join([repr(i) for i in self.table])
if self.type == RegisterValueType.InSetOfValues:
- return "<in %s>" % repr(self.values)
+ return "<in set(%s)>" % '[{}]'.format(', '.join(hex(i) for i in self.values))
if self.type == RegisterValueType.NotInSetOfValues:
- return "<not in %s>" % repr(self.values)
+ return "<not in set(%s)>" % '[{}]'.format(', '.join(hex(i) for i in self.values))
if self.type == RegisterValueType.ReturnAddressValue:
return "<return address>"
return "<undetermined>"