update type check

This commit is contained in:
debugtalk
2018-08-06 10:49:30 +08:00
parent 68435a8102
commit aaac5ba323
+2 -7
View File
@@ -156,13 +156,8 @@ def parse_data(content, mapping):
} }
""" """
# TODO: refactor type check # TODO: refactor type check
if isinstance(content, bool): # TODO: combine this with TestcaseParser
return content if content is None or isinstance(content, (numeric_types, bool, type)):
if isinstance(content, (numeric_types, type)):
return content
if not content:
return content return content
if isinstance(content, (list, set, tuple)): if isinstance(content, (list, set, tuple)):