

def render(hjson_data, saltenv='base', sls='', **kws):
    '\n    Accepts HJSON as a string or as a file object and runs it through the HJSON\n    parser.\n\n    :rtype: A Python data structure\n    '
    if (not isinstance(hjson_data, string_types)):
        hjson_data = hjson_data.read()
    if hjson_data.startswith('#!'):
        hjson_data = hjson_data[(hjson_data.find('\n') + 1):]
    if (not hjson_data.strip()):
        return {
            
        }
    return hjson.loads(hjson_data)

dataset/ETHPy150Open saltstack/salt/salt/renderers/hjson.py render/original