def _apply_list(self, methods):
def call(value):<EOL><INDENT>for method in methods:<EOL><INDENT>newvalue = method(self, value)<EOL>if newvalue is not None:<EOL><INDENT>value = newvalue<EOL><DEDENT><DEDENT>return value<EOL><DEDENT>return call<EOL>
Return a single callable that applies a list of methods to a value.

        If a method returns None, the last value is kept; if it returns
        some other value, that replaces the last value.  Exceptions are
        not caught.