Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] encoding and indentation fixes
  • Loading branch information
volaya committed Jan 28, 2019
1 parent 8bbd559 commit 2895493
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/saga/SagaAlgorithm.py
Expand Up @@ -315,10 +315,10 @@ def processAlgorithm(self, parameters, context, feedback):
try:
filePath.encode('ascii')
except UnicodeEncodeError:
nonAsciiFilePath = filePath
nonAsciiFilePath = filePath
filePath = QgsProcessingUtils.generateTempFilename(out.name() + os.path.splitext(filePath)[1])
output_files_nonascii[filePath] = nonAsciiFilePath

output_files[out.name()] = filePath
command += ' -{} "{}"'.format(out.name(), filePath)

Expand Down Expand Up @@ -442,8 +442,8 @@ def checkParameterValues(self, parameters, context):

if isinstance(param, QgsProcessingParameterRasterLayer):
raster_layer_params.append(param.name())
elif (isinstance(param, QgsProcessingParameterMultipleLayers) and
param.layerType() == QgsProcessing.TypeRaster):
elif (isinstance(param, QgsProcessingParameterMultipleLayers)
and param.layerType() == QgsProcessing.TypeRaster):
raster_layer_params.extend(param.name())

for layer_param in raster_layer_params:
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/tests/SagaAlgorithmsTest.py
Expand Up @@ -115,7 +115,7 @@ def test_non_ascii_output(self):
alg = QgsApplication.processingRegistry().createAlgorithmById('saga:fixeddistancebuffer')
self.assertIsNotNone(alg)

temp_file = os.path.join(self.temp_dir, 'non_ascii_ñññ.gpkg')
temp_file = os.path.join(self.temp_dir, 'non_ascii_ñññ.gpkg')
parameters = {'SHAPES':'testmem',
'DIST_FIELD_DEFAULT':5,
'NZONES':1,
Expand Down

0 comments on commit 2895493

Please sign in to comment.