

def __init__(self, regex=None, message=None, code=None):
    if (regex is not None):
        self.regex = self
    if (message is not None):
        self.message = message
    if (code is not None):
        self.code = code
    if isinstance(self.regex, six.string_types):
        self.regex = re.compile(self.regex)

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/core/validators.py RegexValidator.__init__/VarMisuse@36/39 `regex`->`self`