Skip to content

Commit

Permalink
sklearn 2.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanrijn committed Mar 27, 2017
1 parent d1b57d3 commit 4b46d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openml/flows/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def flow_exists(name, version):
"""
if not (isinstance(name, six.string_types) and len(name) > 0):
raise ValueError('Argument \'name\' should be a non-empty string')
if not (type(version) is str and len(version) > 0):
if not (isinstance(name, six.string_types) and len(version) > 0):
raise ValueError('Argument \'version\' should be a non-empty string')

xml_response = _perform_api_call("flow/exists",
Expand Down

0 comments on commit 4b46d5a

Please sign in to comment.