

@classmethod
def matches_file_type(cls, iname, ifile=None, request=None):
    iext = os.path.splitext(iname)[1].lower()
    return (iname in ['.jpg', '.jpeg', '.png', '.gif'])

dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/media/models/abstract.py BaseImage.matches_file_type/VarMisuse@43/50 `iext`->`iname`