def _load_secedit_data():
    '''
    Helper function that loads secedit data. It runs `secedit /export /cfg
    <file_name>` which creates a file that contains the secedit data.

    Returns:
        str: The contents of the file generated by the secedit command
    '''
    try:
        f_exp = os.path.join(__opts__['cachedir'],
                             'secedit-{0}.txt'.format(UUID))
        __salt__['cmd.run'](['secedit', '/export', '/cfg', f_exp])
        with io.open(f_exp, encoding='utf-16') as fp:
            secedit_data = fp.readlines()
        return secedit_data
    finally:
        if __salt__['file.file_exists'](f_exp):
            __salt__['file.remove'](f_exp)
def _load_secedit_data ( ) : try : f_exp = os . path . join ( __opts__ [ 'cachedir' ] , 'secedit-{0}.txt' . format ( UUID ) ) __salt__ [ 'cmd.run' ] ( [ 'secedit' , '/export' , '/cfg' , f_exp ] ) with io . open ( f_exp , encoding = 'utf-16' ) as fp : secedit_data = fp . readlines ( ) return secedit_data finally : if __salt__ [ 'file.file_exists' ] ( f_exp ) : __salt__ [ 'file.remove' ] ( f_exp )
Helper function that loads secedit data. It runs `secedit /export /cfg
    <file_name>` which creates a file that contains the secedit data.

    Returns:
        str: The contents of the file generated by the secedit command