Exemple #1
0
    def ParseFiles(self, knowledge_base, pathspecs, filedescs):
        del knowledge_base  # Unused.

        results, externals = self._field_parser.EnumerateAllConfigs(
            pathspecs, filedescs)
        yield rdf_config_file.PamConfig(entries=results,
                                        external_config=externals)
Exemple #2
0
  def ParseFiles(
      self,
      knowledge_base: rdf_client.KnowledgeBase,
      pathspecs: Iterable[rdf_paths.PathSpec],
      filedescs: Iterable[IO[bytes]],
  ) -> Iterator[rdf_config_file.PamConfig]:
    del knowledge_base  # Unused.

    results, externals = self._field_parser.EnumerateAllConfigs(
        pathspecs, filedescs)
    yield rdf_config_file.PamConfig(entries=results, external_config=externals)
Exemple #3
0
 def ParseMultiple(self, stats, file_objects, knowledge_base):
     _ = knowledge_base
     results, externals = self._field_parser.EnumerateAllConfigs(
         stats, file_objects)
     yield rdf_config_file.PamConfig(entries=results,
                                     external_config=externals)