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. _______________________________________________ Mailing list: https://launchpad.net/~openlp-core Post to : [email protected] Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp

