def generate_thumbs(self, name, content):
        # see http://code.djangoproject.com/ticket/8222 for details
        content.seek(0)
        image = Image.open(content)

        # Convert to RGBA (alpha) if necessary
        if ('L', 'RGB', 'RGBA') not in image.mode:
            image = image.convert('RGBA')

        for thumb in self.field.thumbs:
            thumb_name, thumb_options = thumb
            # Pre-create all of the thumbnail sizes.
            self.create_and_store_thumb(image, thumb_name, thumb_options)
dataset/ETHPy150Open gtaylor/django-athumb/athumb/fields.py/ImageWithThumbsFieldFile.generate_thumbs/swapped operands of `not in`