Skip to content

Commit db612aa

Browse files
committed
COMP: Shadows name 'input_type','keys' from outer scope
1 parent cc1b39e commit db612aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Wrapping/Generators/Python/itkTemplate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,13 @@ def New(self, *args, **kwargs):
488488
return self._NewMeshReader(itk.MeshFileReader, *args, **kwargs)
489489
primary_input_methods = ("Input", "InputImage", "Input1")
490490

491-
def ttype_for_input_type(keys, input_type):
492-
keys_first = list(filter(lambda k: k[0] == input_type, keys))
491+
def ttype_for_input_type(keys_l, input_type_l):
492+
keys_first = list(filter(lambda k: k[0] == input_type_l, keys_l))
493493
# If there is more than one match, prefer the filter where the
494494
# second template argument, typically the second input or the
495495
# output, has the same type as the input
496496
keys_second = list(
497-
filter(lambda k: len(k) > 1 and k[1] == input_type, keys_first)
497+
filter(lambda k: len(k) > 1 and k[1] == input_type_l, keys_first)
498498
)
499499
if len(keys_second):
500500
return keys_second

0 commit comments

Comments
 (0)