chrome/test/mini_installer/registry_operations.py
def _ValueTypeConstant(value_type):
    """Converts a registry value type string into a _winreg.REG_* constant."""
    value_type_mapping = {
        'BINARY': _winreg.REG_BINARY,
        'DWORD': _winreg.REG_DWORD,
        'DWORD_LITTLE_ENDIAN': _winreg.REG_DWORD_LITTLE_ENDIAN,
        'DWORD_BIG_ENDIAN': _winreg.REG_DWORD_BIG_ENDIAN,
        'EXPAND_SZ': _winreg.REG_EXPAND_SZ,
        'LINK': _winreg.REG_LINK,
        'MULTI_SZ': _winreg.REG_MULTI_SZ,
        'NONE': _winreg.REG_NONE,
        'SZ': _winreg.REG_SZ,
    }
    if value_type not in value_type_mapping:
        raise KeyError("Unknown registry value type '%s'" % value_type)
    return value_type_mapping[value_type]
Converts a registry value type string into a _winreg.REG_* constant.
Converts a registry value type string into a _winreg.REG_* constant.
Converts a registry value type string into a _winreg . REG_ * constant .
def _ValueTypeConstant(value_type):
    value_type_mapping = {
        'BINARY': _winreg.REG_BINARY,
        'DWORD': _winreg.REG_DWORD,
        'DWORD_LITTLE_ENDIAN': _winreg.REG_DWORD_LITTLE_ENDIAN,
        'DWORD_BIG_ENDIAN': _winreg.REG_DWORD_BIG_ENDIAN,
        'EXPAND_SZ': _winreg.REG_EXPAND_SZ,
        'LINK': _winreg.REG_LINK,
        'MULTI_SZ': _winreg.REG_MULTI_SZ,
        'NONE': _winreg.REG_NONE,
        'SZ': _winreg.REG_SZ,
    }
    if value_type not in value_type_mapping:
        raise KeyError("Unknown registry value type '%s'" % value_type)
    return value_type_mapping[value_type]
def _ValueTypeConstant ( value_type ) : value_type_mapping = { 'BINARY' : _winreg . REG_BINARY , 'DWORD' : _winreg . REG_DWORD , 'DWORD_LITTLE_ENDIAN' : _winreg . REG_DWORD_LITTLE_ENDIAN , 'DWORD_BIG_ENDIAN' : _winreg . REG_DWORD_BIG_ENDIAN , 'EXPAND_SZ' : _winreg . REG_EXPAND_SZ , 'LINK' : _winreg . REG_LINK , 'MULTI_SZ' : _winreg . REG_MULTI_SZ , 'NONE' : _winreg . REG_NONE , 'SZ' : _winreg . REG_SZ , } if value_type not in value_type_mapping : raise KeyError ( "Unknown registry value type '%s'" % value_type ) return value_type_mapping [ value_type ]
Converts a registry value type string into a _winreg.REG_* constant.
Converts a registry value type string into a _winreg . REG_ * constant .
"""Converts a registry value type string into a _winreg.REG_* constant."""
value_type