def _get_meta_attr(attrs, attr, default):
    try:
        ret = getattr(attrs['Meta'], attr)
    except (KeyError, __HOLE__):
        ret = default
    return ret
dataset/ETHPy150Open carljm/django-form-utils/form_utils/forms.py/_get_meta_attr