<s> from __future__ import unicode_literals <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> try : <EOL> from PIL import Image as PILImage <EOL> except ImportError as err : <EOL> try : <EOL> import Image as PILImage <EOL> except ImportError as err : <EOL> raise ImproperlyConfigured ( <EOL> _ ( '<STR_LIT>' ) . format ( err ) <EOL> ) </s>
