def has_extensions(self, *exts):
file_ext = splitext(self.filename)[<NUM_LIT:1>]<EOL>file_ext = file_ext.lower()<EOL>for e in exts:<EOL><INDENT>if file_ext == e:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Check if file has one of the extensions.