Changeset cbff4c8 in rtems-tools


Ignore:
Timestamp:
Jun 10, 2019, 10:37:25 PM (4 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
7568306
Parents:
b7b19f4
Message:

rtemstoolkit/macros: Convert all keys to str from unicode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/macros.py

    rb7b19f4 rcbff4c8  
    233233
    234234    def has_key(self, key):
     235        key = self._unicode_to_str(key)
    235236        if type(key) is not str:
    236237            raise TypeError('bad key type (want str): %s' % (type(key)))
     
    409410
    410411    def get(self, key):
     412        key = self._unicode_to_str(key)
    411413        if type(key) is not str:
    412414            raise TypeError('bad key type: %s' % (type(key)))
Note: See TracChangeset for help on using the changeset viewer.