Skip to content

Commit 2895493

Browse files
committedJan 28, 2019
[processing] encoding and indentation fixes
1 parent 8bbd559 commit 2895493

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎python/plugins/processing/algs/saga/SagaAlgorithm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ def processAlgorithm(self, parameters, context, feedback):
315315
try:
316316
filePath.encode('ascii')
317317
except UnicodeEncodeError:
318-
nonAsciiFilePath = filePath
318+
nonAsciiFilePath = filePath
319319
filePath = QgsProcessingUtils.generateTempFilename(out.name() + os.path.splitext(filePath)[1])
320320
output_files_nonascii[filePath] = nonAsciiFilePath
321-
321+
322322
output_files[out.name()] = filePath
323323
command += ' -{} "{}"'.format(out.name(), filePath)
324324

@@ -442,8 +442,8 @@ def checkParameterValues(self, parameters, context):
442442

443443
if isinstance(param, QgsProcessingParameterRasterLayer):
444444
raster_layer_params.append(param.name())
445-
elif (isinstance(param, QgsProcessingParameterMultipleLayers) and
446-
param.layerType() == QgsProcessing.TypeRaster):
445+
elif (isinstance(param, QgsProcessingParameterMultipleLayers)
446+
and param.layerType() == QgsProcessing.TypeRaster):
447447
raster_layer_params.extend(param.name())
448448

449449
for layer_param in raster_layer_params:

‎python/plugins/processing/tests/SagaAlgorithmsTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_non_ascii_output(self):
115115
alg = QgsApplication.processingRegistry().createAlgorithmById('saga:fixeddistancebuffer')
116116
self.assertIsNotNone(alg)
117117

118-
temp_file = os.path.join(self.temp_dir, 'non_ascii_ñññ.gpkg')
118+
temp_file = os.path.join(self.temp_dir, 'non_ascii_ñññ.gpkg')
119119
parameters = {'SHAPES':'testmem',
120120
'DIST_FIELD_DEFAULT':5,
121121
'NZONES':1,

0 commit comments

Comments
 (0)
Please sign in to comment.