diff options
| author | Brian Potchik <brian@vector35.com> | 2018-02-17 02:26:45 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-03-23 17:10:06 -0400 |
| commit | a4a2d163e1b372e48915975ae3428a7ccdd39c1b (patch) | |
| tree | 6869febf49d8df14eae766dcd0f95bffb9030337 /python/function.py | |
| parent | 97381d636410ca5e9072206e7ac75c935de7bb87 (diff) | |
For Python, display set of values in hex format.
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 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>" |
