summaryrefslogtreecommitdiff
path: root/rtemstoolkit/macros.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-03-09 14:27:42 +1100
committerChris Johns <chrisj@rtems.org>2016-03-09 14:27:42 +1100
commit2de37f3432d67e7cbaa1891769cc5ddb9fb24bc3 (patch)
tree5ecc08ee57a7a7a54f41ee0fa3a2d0efe781f17f /rtemstoolkit/macros.py
parenta5d243d3f8e288f153dc9f6ca2e1a052e67e250d (diff)
Python 2 and python 3 refactor fixes.
Updates #2619.
Diffstat (limited to 'rtemstoolkit/macros.py')
-rw-r--r--rtemstoolkit/macros.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtemstoolkit/macros.py b/rtemstoolkit/macros.py
index c92a6c9..2ebc132 100644
--- a/rtemstoolkit/macros.py
+++ b/rtemstoolkit/macros.py
@@ -188,6 +188,7 @@ class macros:
return macro[2]
def __setitem__(self, key, value):
+ key = self._unicode_to_str(key)
if type(key) is not str:
raise TypeError('bad key type (want str): %s' % (type(key)))
if type(value) is not tuple: