Skip to content

Commit 06c2298

Browse files
committed
use six.string_types
1 parent 2b1d259 commit 06c2298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ def _filename_from_source(self, name):
14861486
iflogger.warn('Only one name_source per trait is allowed')
14871487
ns = ns[0]
14881488

1489-
if not isinstance(ns, basestring):
1489+
if not isinstance(ns, six.string_types):
14901490
raise ValueError(('name_source of \'%s\' trait sould be an '
14911491
'input trait name') % name)
14921492

0 commit comments

Comments
 (0)