def __init__(self, win_registry):
if not win_registry:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>super(WinRegistrySearcher, self).__init__()<EOL>self._win_registry = win_registry<EOL>
Initializes a Windows Registry searcher.

        Args:
          win_registry (WinRegistry): Windows Registry.

        Raises:
          ValueError: when Windows Registry is not set.