def get_atomic_func():
    try:
        from django.db.transaction import atomic as atomic_func
    except __HOLE__:
        from django.db.transaction import commit_on_success as atomic_func
    return atomic_func
dataset/ETHPy150Open hovel/pybbm/pybb/compat.py/get_atomic_func