Skip to content

Commit 2b1d259

Browse files
committed
revert outdated changes to master
1 parent d7f9186 commit 2b1d259

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/interfaces/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from datetime import datetime as dt
2525
from dateutil.parser import parse as parseutc
2626
from warnings import warn
27+
from nipype.external import six
2728

2829

2930
from .traits_extension import (traits, Undefined, TraitDictObject,
@@ -541,7 +542,7 @@ def _get_sorteddict(self, object, dictwithhash=False, hash_method=None,
541542
out = tuple(out)
542543
else:
543544
if isdefined(object):
544-
if (hash_files and isinstance(object, str) and
545+
if (hash_files and isinstance(object, six.string_types) and
545546
os.path.isfile(object)):
546547
if hash_method is None:
547548
hash_method = config.get('execution', 'hash_method')
@@ -984,7 +985,7 @@ def run(self, **inputs):
984985
else:
985986
inputs_str = ''
986987

987-
if len(e.args) == 1 and isinstance(e.args[0], str):
988+
if len(e.args) == 1 and isinstance(e.args[0], six.string_types):
988989
e.args = (e.args[0] + " ".join([message, inputs_str]),)
989990
else:
990991
e.args += (message, )

0 commit comments

Comments
 (0)