Commit a2489438 authored by Stefan Behnel's avatar Stefan Behnel

Py2 fix

parent 2985e5d0
...@@ -88,6 +88,8 @@ class UtilityCodeBase(object): ...@@ -88,6 +88,8 @@ class UtilityCodeBase(object):
utility[1] = code utility[1] = code
else: else:
all_tags = utility[2] all_tags = utility[2]
if KEYWORDS_MUST_BE_BYTES:
type = type.encode('ASCII')
all_tags[type] = code all_tags[type] = code
if tags: if tags:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment