def StrictlyAlphanumeric(msg=None):
    def fn(value):
        if not (
            (isinstance(value, str) or isinstance(value, unicode)) and
            re_alphabets.search(value) and
            re_digits.search(value)
        ):
            raise Invalid(msg or (
                'Invalid input <{0}>; expected an integer'.format(value))
            )
        else:
            return value
    return fn
To commit the changes loaded in the candidate configuration.
dataset/ETHPy150Open manjitkumar/drf-url-filters/filters/validations.py/StrictlyAlphanumeric--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/junos.py/commit