summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2019-10-29 17:57:10 -0400
committerGlenn Smith <glenn@vector35.com>2020-01-16 01:06:45 -0500
commit185a77b28a90335a201e27c9cb949ce2d45a183e (patch)
tree138c9a98f0d23e6dc8ffe7fcf9786e6b3383f602 /python/binaryview.py
parent39ec57947875e6f0f18051f0a9211119fc925ffe (diff)
Update gutter width, tag token as a constant
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index d0b0ac4f..146c2394 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -3479,7 +3479,10 @@ class BinaryView(object):
for i in range(0, count.value):
tag = TagType(core.BNNewTagTypeReference(types[i]))
if tag.name in result:
- result[tag.name] = [result[tag.name], tag]
+ if type(result[tag.name]) == list:
+ result[tag.name].append(tag)
+ else:
+ result[tag.name] = [result[tag.name], tag]
else:
result[tag.name] = tag
core.BNFreeTagTypeList(types, count.value)