Skip to content

Commit e9973dd

Browse files
committed
six.stringtypes
1 parent f804220 commit e9973dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

openml/flows/functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import xmltodict
2+
import six
23

34
from openml._api_calls import _perform_api_call
45
from . import OpenMLFlow, flow_to_sklearn
@@ -88,7 +89,7 @@ def flow_exists(name, version):
8889
-----
8990
see http://www.openml.org/api_docs/#!/flow/get_flow_exists_name_version
9091
"""
91-
if not (type(name) is str and len(name) > 0):
92+
if not (type(name) is six.stringtypes and len(name) > 0):
9293
raise ValueError('Argument \'name\' should be a non-empty string')
9394
if not (type(version) is str and len(version) > 0):
9495
raise ValueError('Argument \'version\' should be a non-empty string')

0 commit comments

Comments
 (0)