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 f804220 commit e9973ddCopy full SHA for e9973dd
1 file changed
openml/flows/functions.py
@@ -1,4 +1,5 @@
1
import xmltodict
2
+import six
3
4
from openml._api_calls import _perform_api_call
5
from . import OpenMLFlow, flow_to_sklearn
@@ -88,7 +89,7 @@ def flow_exists(name, version):
88
89
-----
90
see http://www.openml.org/api_docs/#!/flow/get_flow_exists_name_version
91
"""
- if not (type(name) is str and len(name) > 0):
92
+ if not (type(name) is six.stringtypes 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