[ovs-dev,27/55] python: Use six.unichr().
diff mbox

Message ID 1450730875-18083-28-git-send-email-russell@ovn.org
State Deferred
Headers show

Commit Message

Russell Bryant Dec. 21, 2015, 8:47 p.m. UTC
six.unichr() is equivalent to unichr() in Python 2
and chr() in Python 3.

Signed-off-by: Russell Bryant <russell@ovn.org>
---
 python/ovs/json.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

diff --git a/python/ovs/json.py b/python/ovs/json.py
index a59a0c2..db74397 100644
--- a/python/ovs/json.py
+++ b/python/ovs/json.py
@@ -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):