diff --git a/Modules/Wrappers/SWIG/src/otbApplication.i b/Modules/Wrappers/SWIG/src/otbApplication.i index 32042577508bf616884a1c7ec8f35de19b671a9e..2f4605cd863ae819927d4c327ccd239d22a026e4 100644 --- a/Modules/Wrappers/SWIG/src/otbApplication.i +++ b/Modules/Wrappers/SWIG/src/otbApplication.i @@ -594,8 +594,8 @@ class ApplicationProxy(object): return s def SetParameters(self, dict_params): - for param_key, param_value in dict_params.iteritems(): - self.SetParameterValue(param_key, param_value) + for key in dict_params: + self.SetParameterValue(key, dict_params[key]) def SetParameterValue(self, paramKey, value): paramType = self.GetParameterType(paramKey)