2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

python: Use six.unichr().

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>
This commit is contained in:
Russell Bryant
2015-12-16 12:19:22 -05:00
parent d36bbd37f6
commit eac25f500a

View File

@@ -408,7 +408,7 @@ class Parser(object):
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):