Skip to content

Commit b2ee1b3

Browse files
committed
use six.string_types
1 parent 523c756 commit b2ee1b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/bald/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,12 +865,12 @@ def load_netcdf(afilepath, baseuri=None, alias_dict=None, cache=None):
865865
root_container.unpack_predicate(sattr) in ref_prefs):
866866
# if sattr == 'coordinates':
867867
# import pdb; pdb.set_trace()
868-
869-
if (isinstance(sattrs[sattr], str) and
868+
869+
if (isinstance(sattrs[sattr], six.string_types) and
870870
file_variables.get(sattrs[sattr])):
871871
# next: remove all use of set, everything is dict or orderedDict
872872
var.attrs[sattr] = set((file_variables.get(sattrs[sattr]),))
873-
elif isinstance(sattrs[sattr], str):
873+
elif isinstance(sattrs[sattr], six.string_types):
874874
potrefs_list = sattrs[sattr].split(',')
875875
potrefs_set = sattrs[sattr].split(' ')
876876
if len(potrefs_list) > 1:

0 commit comments

Comments
 (0)