Skip to content

Commit 6ebedbc

Browse files
committedApr 11, 2013
[sextante] attempt to fix issue with non-ASCII characters in modeler
1 parent a880236 commit 6ebedbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/sextante/modeler/ModelerAlgorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,14 +519,14 @@ def processAlgorithm(self, progress):
519519
+ str(len(self.algs) - len(self.deactivated)) +"]")
520520
outputs = {}
521521
progress.setDebugInfo("Parameters: " +
522-
', '.join([str(p).strip() + "=" + str(p.value) for p in alg.parameters]))
522+
', '.join([unicode(p).strip() + "=" + unicode(p.value) for p in alg.parameters]))
523523
t0 = time.time()
524524
alg.execute(progress)
525525
dt = time.time() - t0
526526
for out in alg.outputs:
527527
outputs[out.name] = out.value
528528
progress.setDebugInfo("Outputs: " +
529-
', '.join([str(out).strip() + "=" + str(outputs[out.name]) for out in alg.outputs]))
529+
', '.join([unicode(out).strip() + "=" + unicode(outputs[out.name]) for out in alg.outputs]))
530530
self.producedOutputs[iAlg] = outputs
531531
executed.append(iAlg)
532532
progress.setDebugInfo("OK. Execution took %0.3f ms (%i outputs)." % (dt, len(outputs)))

0 commit comments

Comments
 (0)
Please sign in to comment.