Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
processing: fix warning when loading otb algorithms
  • Loading branch information
jef-n committed Aug 18, 2015
1 parent 0ccd7bd commit 697d2af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions python/plugins/processing/algs/otb/OTBAlgorithm.py
Expand Up @@ -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

Expand Down

3 comments on commit 697d2af

@m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented on 697d2af Aug 18, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@jef-n
Copy link
Member Author

@jef-n jef-n commented on 697d2af Aug 18, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it brought github.com down ;)

@m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented on 697d2af Aug 18, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.