

def get(self, validator):
    if isinstance(validator, Validator):
        return validator
    if isinstance(validator, basestring):
        if (validator in self.validators):
            return self.validators[validator]()
        elif (validator == 'string'):
            return None
        else:
            raise Exception(('Unable to find a validator with name "%s"' % validator))
    if (validator is basestring):
        return None
    if (validator is int):
        return Integer()
    if (validator is float):
        return Float()
    if (validator is bool):
        return Boolean()
    return None

dataset/ETHPy150Open sdispater/cleo/cleo/validators/__init__.py ValidatorSet.get/original