Skip to content

Commit 4b02558

Browse files
committed
Removed redundant imports
1 parent b3c6afc commit 4b02558

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nipype/interfaces/io.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class DataSinkInputSpec(DynamicTraitedSpec, BaseInterfaceInputSpec):
183183
desc='Folder within base directory in which to store output')
184184
parameterization = traits.Bool(True, usedefault=True,
185185
desc='store output in parametrized structure')
186-
strip_dir = traits.Directory(desc='path to strip out of filename')
186+
strip_dir = Directory(desc='path to strip out of filename')
187187
substitutions = InputMultiPath(traits.Tuple(traits.Str, traits.Str),
188188
desc=('List of 2-tuples reflecting string '
189189
'to substitute and string to replace '
@@ -206,10 +206,9 @@ class DataSinkInputSpec(DynamicTraitedSpec, BaseInterfaceInputSpec):
206206

207207
# Set call-able inputs attributes
208208
def __setattr__(self, key, value):
209-
import nipype.interfaces.traits_extension as nit
210209

211210
if key not in self.copyable_trait_names():
212-
if not nit.isdefined(value):
211+
if not isdefined(value):
213212
super(DataSinkInputSpec, self).__setattr__(key, value)
214213
self._outputs[key] = value
215214
else:

0 commit comments

Comments
 (0)