projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Drop unicode type.
[cascardo/ovs.git]
/
tests
/
test-json.py
diff --git
a/tests/test-json.py
b/tests/test-json.py
index
c97d46d
..
16b3fae
100644
(file)
--- a/
tests/test-json.py
+++ b/
tests/test-json.py
@@
-19,10
+19,11
@@
import getopt
import sys
import ovs.json
+import six
def print_json(json):
- if
type(json) in [str, unicode]
:
+ if
isinstance(json, six.string_types)
:
print("error: %s" % json)
return False
else: