Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more unicoding (followup 697d2af)
  • Loading branch information
jef-n committed Aug 24, 2015
1 parent ab7c0bf commit aa36491
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions python/plugins/processing/algs/otb/maintenance/OTBHelper.py
Expand Up @@ -515,15 +515,10 @@ def adapt_list_to_string(c_list):

a_list[1] = "-%s" % a_list[1]

def myunicode(par):
if isinstance(par, list):
return ";".join(par)
return unicode(par)

if a_list[-1] is None:
return ""

b_list = map(mystr, a_list)
b_list = map(lambda x: ";".join(x) if isinstance(x, list) else unicode(x), a_list)
b_list = [b_list[1], b_list[-1]]
res = " ".join(b_list)
return res
Expand Down

0 comments on commit aa36491

Please sign in to comment.