We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1c7b5 commit 2e85876Copy full SHA for 2e85876
Wrapping/Generators/Python/itkTemplate.py
@@ -321,7 +321,7 @@ def __getitem__(self, parameters):
321
"""
322
323
parameters_type = type(parameters)
324
- if not parameters_type is tuple and not parameters_type is list:
+ if (parameters_type is not tuple) and (parameters_type is not list):
325
# parameters is a single element.
326
# include it in a list to manage the 2 cases in the same way
327
parameters = [parameters]
0 commit comments