def __init__(self, message):
        "ValidationError can be passed a string or a list."
        if isinstance(message, list):
            self.messages = ErrorList([smart_unicode(msg) for msg in message])
        else:
            assert isinstance(message, basestring), ("%s should be a basestring" % repr(message))
            message = smart_unicode(message)
            self.messages = ErrorList([message])
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/newforms/util.py/ValidationError.__init__/original