summaryrefslogtreecommitdiff
path: root/python/ovs/db/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/ovs/db/parser.py')
-rw-r--r--python/ovs/db/parser.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/python/ovs/db/parser.py b/python/ovs/db/parser.py
index 073f76062..67b3bd53c 100644
--- a/python/ovs/db/parser.py
+++ b/python/ovs/db/parser.py
@@ -75,18 +75,18 @@ id_re = re.compile("[_a-zA-Z][_a-zA-Z0-9]*$")
def is_identifier(s):
return type(s) in [str, unicode] and id_re.match(s)
-def json_type_to_string(type):
- if type == None:
+def json_type_to_string(type_):
+ if type_ == None:
return "null"
- elif type == bool:
+ elif type_ == bool:
return "boolean"
- elif type == dict:
+ elif type_ == dict:
return "object"
- elif type == list:
+ elif type_ == list:
return "array"
- elif type in [int, long, float]:
+ elif type_ in [int, long, float]:
return "number"
- elif type in [str, unicode]:
+ elif type_ in [str, unicode]:
return "string"
else:
return "<invalid>"