Whitespace and formatting cleanup.
* Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
|
||||
from mimetypes import guess_type
|
||||
|
||||
|
||||
ALLOWED = ['image/jpeg', 'image/png', 'image/tiff', 'image/gif']
|
||||
|
||||
|
||||
def check_filetype(posted_file):
|
||||
if not guess_type(posted_file.filename)[0] in ALLOWED:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user