def is_gzippable(self, path):
<EOL>if not getattr(settings, '<STR_LIT>', False):<EOL><INDENT>return False<EOL><DEDENT>whitelist = getattr(<EOL>settings,<EOL>'<STR_LIT>',<EOL>DEFAULT_GZIP_CONTENT_TYPES<EOL>)<EOL>return mimetypes.guess_type(path)[<NUM_LIT:0>] in whitelist<EOL>
Returns a boolean indicating if the provided file path is a candidate
for gzipping.