Skip to content

Commit

Permalink
python: Use six.unichr().
Browse files Browse the repository at this point in the history
six.unichr() is equivalent to unichr() in Python 2
and chr() in Python 3.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
russellb committed Feb 2, 2016
1 parent d36bbd3 commit eac25f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ovs/json.py
Expand Up @@ -408,7 +408,7 @@ def __lex_finish_string(self):
inp = inp[6:]
else:
code_point = c0
out += unichr(code_point)
out += six.unichr(code_point)
self.__parser_input('string', out)

def __lex_string_escape(self, c):
Expand Down

0 comments on commit eac25f5

Please sign in to comment.