mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6361 from theotherjimmy/unicode-options
Convert option list to unicodepull/6192/head
commit
aa4ebf13a1
|
@ -393,6 +393,8 @@ def argparse_force_type(case):
|
||||||
"""
|
"""
|
||||||
def middle(lst, type_name):
|
def middle(lst, type_name):
|
||||||
""" The parser type generator"""
|
""" The parser type generator"""
|
||||||
|
if not isinstance(lst[0], unicode):
|
||||||
|
lst = [o.decode() for o in lst]
|
||||||
def parse_type(string):
|
def parse_type(string):
|
||||||
""" The parser type"""
|
""" The parser type"""
|
||||||
if not isinstance(string, unicode):
|
if not isinstance(string, unicode):
|
||||||
|
|
Loading…
Reference in New Issue