def find_suggestions(filelist):
suggestions = set()<EOL>unknowns = []<EOL>for filename in filelist:<EOL><INDENT>if os.path.isdir(filename):<EOL><INDENT>continue<EOL><DEDENT>for pattern, suggestion in SUGGESTIONS:<EOL><INDENT>m = pattern.match(filename)<EOL>if m is not None:<EOL><INDENT>suggestions.add(pattern.sub(suggestion, filename))<EOL>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>unknowns.append(filename)<EOL><DEDENT><DEDENT>return sorted(suggestions), unknowns<EOL>
Suggest MANIFEST.in patterns for missing files.