Skip to content

Commit 905951f

Browse files
committed
correct string checking
1 parent 900676a commit 905951f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openml/datasets/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import io
33
import logging
44
import os
5+
import six
56
import sys
67

78
import arff
@@ -10,7 +11,6 @@
1011
import scipy.sparse
1112
import xmltodict
1213

13-
from builtins import str
1414
from .data_feature import OpenMLDataFeature
1515
from ..exceptions import PyOpenMLError
1616

@@ -66,7 +66,7 @@ def __init__(self, dataset_id=None, name=None, version=None, description=None,
6666
self.default_target_attribute = default_target_attribute
6767
self.row_id_attribute = row_id_attribute
6868
self.ignore_attributes = None
69-
if isinstance(ignore_attribute, str):
69+
if isinstance(ignore_attribute, six.string_types):
7070
self.ignore_attributes = [ignore_attribute]
7171
elif isinstance(ignore_attribute, list):
7272
self.ignore_attributes = ignore_attribute

0 commit comments

Comments
 (0)