mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +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:
@@ -408,7 +408,7 @@ class Parser(object):
|
|||||||
inp = inp[6:]
|
inp = inp[6:]
|
||||||
else:
|
else:
|
||||||
code_point = c0
|
code_point = c0
|
||||||
out += unichr(code_point)
|
out += six.unichr(code_point)
|
||||||
self.__parser_input('string', out)
|
self.__parser_input('string', out)
|
||||||
|
|
||||||
def __lex_string_escape(self, c):
|
def __lex_string_escape(self, c):
|
||||||
|
|||||||
Reference in New Issue
Block a user