Skip to content

Commit 697d2af

Browse files
committedAug 18, 2015
processing: fix warning when loading otb algorithms
1 parent 0ccd7bd commit 697d2af

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎python/plugins/processing/algs/otb/OTBAlgorithm.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,7 @@ def adapt_list_to_string(self, c_list):
9797
a_list[3] = -1
9898

9999
a_list[1] = "-%s" % a_list[1]
100-
101-
def myunicode(par):
102-
if isinstance(par, list):
103-
return ";".join(par)
104-
return unicode(par)
105-
106-
b_list = map(mystr, a_list)
100+
b_list = map(lambda x: ";".join(x) if isinstance(x,list) else unicode(x), a_list)
107101
res = "|".join(b_list)
108102
return res
109103

0 commit comments

Comments
 (0)
Failed to load comments.