mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -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[1] = "-%s" % a_list[1]
|
||||
|
||||
def myunicode(par):
|
||||
if isinstance(par, list):
|
||||
return ";".join(par)
|
||||
return unicode(par)
|
||||
|
||||
b_list = map(mystr, a_list)
|
||||
b_list = map(lambda x: ";".join(x) if isinstance(x,list) else unicode(x), a_list)
|
||||
res = "|".join(b_list)
|
||||
return res
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user