parameters: (key, value)
return_statement: return match.group(1)
docstring: Use _winreg or reg.exe to obtain the value of a registry key.
  
    Using _winreg is preferable because it solves an issue on some corporate
    environments where access to reg.exe is locked down. However, we still need
    to fallback to reg.exe for the case where the _winreg module is not available
    (for example in cygwin python).
  
    Args:
      key: The registry key.
      value: The particular registry value to read.
    Return:
      contents of the registry key's value, or None on failure.
docstring_summary: Use _winreg or reg.exe to obtain the value of a registry key.
docstring_tokens: Use _winreg or reg . exe to obtain the value of a registry key .
function: def _RegistryGetValue(key, value):
      """Use _winreg or reg.exe to obtain the value of a registry key.
  
    Using _winreg is preferable because it solves an issue on some corporate
    environments where access to reg.exe is locked down. However, we still need
    to fallback to reg.exe for the case where the _winreg module is not available
    (for example in cygwin python).
  
    Args:
      key: The registry key.
      value: The particular registry value to read.
    Return:
      contents of the registry key's value, or None on failure.
    """
      try:
          return _RegistryGetValueUsingWinReg(key, value)
      except ImportError:
          pass
  
      # Fallback to reg.exe if we fail to import _winreg.
      text = _RegistryQuery(key, value)
      if not text:
          return None
      # Extract value.
      match = re.search(r"REG_\w+\s+([^\r]+)\r\n", text)
      if not match:
          return None
      return match.group(1)
function_tokens: def _RegistryGetValue ( key , value ) : try : return _RegistryGetValueUsingWinReg ( key , value ) except ImportError : pass # Fallback to reg.exe if we fail to import _winreg. text = _RegistryQuery ( key , value ) if not text : return None # Extract value. match = re . search ( r"REG_\w+\s+([^\r]+)\r\n" , text ) if not match : return None return match . group ( 1 )