Skip to content

Commit d1b57d3

Browse files
committed
fix string types
1 parent e9973dd commit d1b57d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openml/flows/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def flow_exists(name, version):
8989
-----
9090
see http://www.openml.org/api_docs/#!/flow/get_flow_exists_name_version
9191
"""
92-
if not (type(name) is six.stringtypes and len(name) > 0):
92+
if not (isinstance(name, six.string_types) and len(name) > 0):
9393
raise ValueError('Argument \'name\' should be a non-empty string')
9494
if not (type(version) is str and len(version) > 0):
9595
raise ValueError('Argument \'version\' should be a non-empty string')

0 commit comments

Comments
 (0)