def _unpack_tarfile(filename, extract_dir):
    try:
        tarobj = tarfile.open(filename)
    except tarfile.TarError:
        raise ReadError(
            "%s is not a compressed or uncompressed tar file" % filename)
    try:
        tarobj.extractall(extract_dir)
    finally:
        tarobj.close()
Check that a user has this role.
dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/pip/_vendor/distlib/_backport/shutil.py/_unpack_tarfile--crossover with--dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/permissions.py/Role.user_has_role