projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36bbd3
)
python: Use six.unichr().
author
Russell Bryant
<russell@ovn.org>
Wed, 16 Dec 2015 17:19:22 +0000
(12:19 -0500)
committer
Russell 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
patch
|
blob
|
history
diff --git
a/python/ovs/json.py
b/python/ovs/json.py
index
a59a0c2
..
db74397
100644
(file)
--- 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):