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 Sep 20, 2018
1 parent 02a90c0 commit cf9d908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openml/tasks/functions.py
Expand Up @@ -349,7 +349,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 cf9d908

Please sign in to comment.