Skip to content

Commit 01446c0

Browse files
committed
replaced basestring by str in _supported_scalars_types
1 parent c0880d6 commit 01446c0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

larray/inout/common.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from datetime import date, time, datetime
55
from collections import OrderedDict
66

7-
from larray.util.compat import basestring, PY2
87
from larray.core.axis import Axis
98
from larray.core.group import Group
109
from larray.core.array import Array
@@ -15,11 +14,9 @@
1514

1615
# only for HDF5 and pickle formats
1716
# support list, tuple and dict?
18-
_supported_scalars_types = (int, float, bool, basestring, date, time, datetime)
17+
_supported_scalars_types = (int, float, bool, str, date, time, datetime)
1918
_supported_types = _supported_larray_types + _supported_scalars_types
2019
_supported_typenames = {cls.__name__ for cls in _supported_types}
21-
if PY2:
22-
_supported_typenames.add('str')
2320

2421

2522
def _get_index_col(nb_axes=None, index_col=None, wide=True):

0 commit comments

Comments
 (0)