Skip to content

Commit

Permalink
Ensure unicode when using format for the steps
Browse files Browse the repository at this point in the history
  • Loading branch information
elyezer committed Mar 9, 2017
1 parent 856c31c commit 95ee598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testimony/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def parse(self, docstring=None):
value_lst = map(lambda elem: elem.text,
value_el.findall('./list_item/paragraph'))
list_enum = list(enumerate(value_lst, start=1))
steps = map(lambda val: '{}. {}'.format(val[0], val[1]),
steps = map(lambda val: u'{}. {}'.format(val[0], val[1]),
list_enum)
value = '\n'.join(steps)
tokens_dict[token_name] = value
Expand Down

0 comments on commit 95ee598

Please sign in to comment.