python: Use six.unichr().
authorRussell Bryant <russell@ovn.org>
Wed, 16 Dec 2015 17:19:22 +0000 (12:19 -0500)
committerRussell Bryant <russell@ovn.org>
Tue, 2 Feb 2016 21:42:03 +0000 (16:42 -0500)
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>
python/ovs/json.py

index a59a0c2..db74397 100644 (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):