← Back to team overview

openlp-core team mailing list archive

Re: [Merge] lp:~minkus/openlp/naturalsortfix into lp:openlp

 

Having a nightmare

1) If I implement your suggestion, I get:
E731 do not assign a lambda expression, use a def for pep8

2) If I fix this as per http://stackoverflow.com/questions/25010167/e731-do-not-assign-a-lambda-expression-use-a-def, 

def get_key(object): return get_natural_key(object.name)
objects.sort(key=get_key)

I get:
E301 expected 1 blank line, found 0
E704 multiple statements on one line (def)

I'll keep fiddling, unless there are any suggestions here
-- 
https://code.launchpad.net/~minkus/openlp/naturalsortfix/+merge/292101
Your team OpenLP Core is subscribed to branch lp:openlp.


References