def hash_file(path, hashobj, conn=None):
    if os.path.isdir(path):
        return ''

    with salt.utils.fopen(path, 'r') as f:
        hashobj.update(f.read())
        return hashobj.hexdigest()
Render a form
dataset/ETHPy150Open saltstack/salt/salt/spm/pkgfiles/local.py/hash_file--crossover with--dataset/ETHPy150Open dyve/django-bootstrap3/bootstrap3/templatetags/bootstrap3.py/bootstrap_form