def extension(names):
for name in names:<EOL><INDENT>if not NAME_PATTERN.match(name):<EOL><INDENT>raise ValueError('<STR_LIT>' % name)<EOL><DEDENT><DEDENT>def decorator(f, names=names):<EOL><INDENT>return Extension(f, names=names)<EOL><DEDENT>return decorator<EOL>
Makes a function to be an extension.