We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9973dd commit d1b57d3Copy full SHA for d1b57d3
1 file changed
openml/flows/functions.py
@@ -89,7 +89,7 @@ def flow_exists(name, version):
89
-----
90
see http://www.openml.org/api_docs/#!/flow/get_flow_exists_name_version
91
"""
92
- if not (type(name) is six.stringtypes and len(name) > 0):
+ if not (isinstance(name, six.string_types) and len(name) > 0):
93
raise ValueError('Argument \'name\' should be a non-empty string')
94
if not (type(version) is str and len(version) > 0):
95
raise ValueError('Argument \'version\' should be a non-empty string')
0 commit comments