mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
processing: fix warning when loading otb algorithms
This commit is contained in:
parent
0ccd7bd5bf
commit
697d2af533
@ -97,13 +97,7 @@ class OTBAlgorithm(GeoAlgorithm):
|
|||||||
a_list[3] = -1
|
a_list[3] = -1
|
||||||
|
|
||||||
a_list[1] = "-%s" % a_list[1]
|
a_list[1] = "-%s" % a_list[1]
|
||||||
|
b_list = map(lambda x: ";".join(x) if isinstance(x,list) else unicode(x), a_list)
|
||||||
def myunicode(par):
|
|
||||||
if isinstance(par, list):
|
|
||||||
return ";".join(par)
|
|
||||||
return unicode(par)
|
|
||||||
|
|
||||||
b_list = map(mystr, a_list)
|
|
||||||
res = "|".join(b_list)
|
res = "|".join(b_list)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user