Skip to content

Commit 28e27b9

Browse files
committed
FIX: Rebase artifact
1 parent b737310 commit 28e27b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/utility/wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(self, input_names=None, output_names='out', function=None,
9191
else:
9292
if inputs is None:
9393
fninfo = function.func_code
94-
elif isinstance(function, string_types):
94+
elif isinstance(function, (str, bytes)):
9595
self.inputs.function_str = function
9696
if inputs is None:
9797
fninfo = create_function_from_source(
@@ -115,7 +115,7 @@ def _set_function_string(self, obj, name, old, new):
115115
if hasattr(new, '__call__'):
116116
function_source = getsource(new)
117117
fninfo = new.func_code
118-
elif isinstance(new, string_types):
118+
elif isinstance(new, (str, bytes)):
119119
function_source = new
120120
fninfo = create_function_from_source(
121121
new, self.imports).func_code

0 commit comments

Comments
 (0)