Skip to content

Commit ab9a9df

Browse files
committed
Changed default for CommandLine._run_interface to not be mutable
The correct_runtime_codes default is a list, which is mutable. This allows for the default to be changed in subsequent calls. Changed to a tuple
1 parent 3ed411b commit ab9a9df

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
@@ -1660,7 +1660,7 @@ def _run_wrapper(self, runtime):
16601660
runtime = self._run_interface(runtime)
16611661
return runtime
16621662

1663-
def _run_interface(self, runtime, correct_return_codes=[0]):
1663+
def _run_interface(self, runtime, correct_return_codes=(0,)):
16641664
"""Execute command via subprocess
16651665
16661666
Parameters

0 commit comments

Comments
 (0)