diff options
Diffstat (limited to 'rtemstoolkit/macros.py')
-rw-r--r-- | rtemstoolkit/macros.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rtemstoolkit/macros.py b/rtemstoolkit/macros.py index c9410ae..4eb8829 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: |