Skip to content

Commit

Permalink
changing type to isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
ArlindKadra committed Oct 4, 2018
1 parent 54aa56b commit 362e9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openml/tasks/functions.py
Expand Up @@ -342,7 +342,7 @@ def _create_task_from_xml(xml):
# the possible keys of oml:input; dic["oml:input"] is a list of
# OrderedDicts
# Check if there is a list of inputs
if type(dic["oml:input"]) is list:
if isinstance(dic["oml:input"], list):
for input_ in dic["oml:input"]:
name = input_["@name"]
inputs[name] = input_
Expand Down

0 comments on commit 362e9b3

Please sign in to comment.