Skip to content

Commit 6be212e

Browse files
committed
fixed several errors
1 parent 463708c commit 6be212e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def connect(self, *args, **kwargs):
376376
# handles the case that source is specified
377377
# with a function
378378
sourcename = source[0]
379-
elif isinstance(source, six.string_types):
379+
elif isinstance(source, string_types):
380380
sourcename = source
381381
else:
382382
raise Exception(('Unknown source specification in '
@@ -397,7 +397,7 @@ def connect(self, *args, **kwargs):
397397
# turn functions into strings
398398
for srcnode, destnode, connects in connection_list:
399399
for idx, (src, dest) in enumerate(connects):
400-
if isinstance(src, tuple) and not isinstance(src[1], six.string_types):
400+
if isinstance(src, tuple) and not isinstance(src[1], string_types):
401401
function_source = getsource(src[1])
402402
connects[idx] = ((src[0], function_source, src[2:]), dest)
403403

@@ -918,7 +918,7 @@ def _set_input(self, object, name, newvalue):
918918

919919
def _set_node_input(self, node, param, source, sourceinfo):
920920
"""Set inputs of a node given the edge connection"""
921-
if isinstance(sourceinfo, six.string_types):
921+
if isinstance(sourceinfo, string_types):
922922
val = source.get_output(sourceinfo)
923923
elif isinstance(sourceinfo, tuple):
924924
if callable(sourceinfo[1]):

0 commit comments

Comments
 (0)