def __init__(
      self, name, class_name=None, key_path='', last_written_time=None,
      offset=None, subkeys=None, values=None):
    """Initializes a Windows Registry key.

    Subkeys and values with duplicate names are silently ignored.

    Args:
      name (str): name of the Windows Registry key.
      key_path (Optional[str]): Windows Registry key path.
      class_name (Optional[str]): class name of the Windows Registry key.
      last_written_time (Optional[int]): last written time, formatted as
          a FILETIME timestamp.
      offset (Optional[int]): offset of the key within the Windows Registry
          file.
      subkeys (Optional[list[FakeWinRegistryKey]]): list of subkeys.
      values (Optional[list[FakeWinRegistryValue]]): list of values.
    """
    super(FakeWinRegistryKey, self).__init__(key_path=key_path)
    self._class_name = class_name
    self._last_written_time = last_written_time
    self._name = name
    self._offset = offset
    self._subkeys = collections.OrderedDict()
    self._values = collections.OrderedDict()

    self._BuildKeyHierarchy(subkeys, values)
def __init__ ( self , name , class_name = None , key_path = '' , last_written_time = None , offset = None , subkeys = None , values = None ) : super ( FakeWinRegistryKey , self ) . __init__ ( key_path = key_path ) self . _class_name = class_name self . _last_written_time = last_written_time self . _name = name self . _offset = offset self . _subkeys = collections . OrderedDict ( ) self . _values = collections . OrderedDict ( ) self . _BuildKeyHierarchy ( subkeys , values )
Initializes a Windows Registry key.

    Subkeys and values with duplicate names are silently ignored.

    Args:
      name (str): name of the Windows Registry key.
      key_path (Optional[str]): Windows Registry key path.
      class_name (Optional[str]): class name of the Windows Registry key.
      last_written_time (Optional[int]): last written time, formatted as
          a FILETIME timestamp.
      offset (Optional[int]): offset of the key within the Windows Registry
          file.
      subkeys (Optional[list[FakeWinRegistryKey]]): list of subkeys.
      values (Optional[list[FakeWinRegistryValue]]): list of values.