def reg_info(user):
 if user:
  section = _winreg.HKEY_CURRENT_USER
  keypath = 'Software\\SABnzbd'
 else:
  section = _winreg.HKEY_LOCAL_MACHINE
  keypath = 'SYSTEM\\CurrentControlSet\\Services\\SABnzbd'
 return (section, keypath)

def reg_info ( user ) : if user : section = _winreg . HKEY_CURRENT_USER keypath = 'Software\\SABnzbd' else : section = _winreg . HKEY_LOCAL_MACHINE keypath = 'SYSTEM\\CurrentControlSet\\Services\\SABnzbd' return ( section , keypath )
return the reg key for api .