Skip to content

Commit aa4ebf1

Browse files
authored
Merge pull request #6361 from theotherjimmy/unicode-options
Convert option list to unicode
2 parents 0828727 + 229a072 commit aa4ebf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ def argparse_force_type(case):
393393
"""
394394
def middle(lst, type_name):
395395
""" The parser type generator"""
396+
if not isinstance(lst[0], unicode):
397+
lst = [o.decode() for o in lst]
396398
def parse_type(string):
397399
""" The parser type"""
398400
if not isinstance(string, unicode):

0 commit comments

Comments
 (0)