def _read_regpol_file(reg_pol_path):
 returndata = None
 if os.path.exists(reg_pol_path):
  with open(reg_pol_path, 'rb') as pol_file:
   returndata = pol_file.read()
  returndata = returndata.decode('utf-16-le')
 return returndata

def _read_regpol_file ( reg_pol_path ) : returndata = None if os . path . exists ( reg_pol_path ) : with open ( reg_pol_path , 'rb' ) as pol_file : returndata = pol_file . read ( ) returndata = returndata . decode ( 'utf-16-le' ) return returndata
helper function to read a reg policy file and return decoded data .