Skip to content
Permalink
Browse files

processing: fix warning when loading otb algorithms

  • Loading branch information
jef-n committed Aug 18, 2015
1 parent 0ccd7bd commit 697d2af533c4149bfadd65b8fdee73cb9968bb8b
Showing with 1 addition and 7 deletions.
  1. +1 −7 python/plugins/processing/algs/otb/OTBAlgorithm.py
@@ -97,13 +97,7 @@ def adapt_list_to_string(self, c_list):
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

3 comments on commit 697d2af

@m-kuhn

This comment has been minimized.

Copy link
Member

@m-kuhn m-kuhn replied Aug 18, 2015

thank you. I had a feeling that this shotgun approach would cause some collateral damege.

@jef-n

This comment has been minimized.

Copy link
Member Author

@jef-n jef-n replied Aug 18, 2015

yes, it brought github.com down ;)

@m-kuhn

This comment has been minimized.

Copy link
Member

@m-kuhn m-kuhn replied Aug 18, 2015

if it's not worse... I feared that some users could have been unable to use otb in the last 24 hours.

Please sign in to comment.
You can’t perform that action at this time.