parameters: (self, hooks)
docstring: Prepares the given hooks.
docstring_summary: Prepares the given hooks.
docstring_tokens: Prepares the given hooks .
function: def prepare_hooks(self, hooks):
          """Prepares the given hooks."""
          for event in hooks:
              self.register_hook(event, hooks[event])
function_tokens: def prepare_hooks ( self , hooks ) : for event in hooks : self . register_hook ( event , hooks [ event ] )