(self, config)
Given a config dict that may have `pre-hook`/`post-hook` keys,
        convert it from the yucky maybe-a-string, maybe-a-dict to a dict.
Given a config dict that may have `pre-hook`/`post-hook` keys,
        convert it from the yucky maybe-a-string, maybe-a-dict to a dict.
Given a config dict that may have pre - hook / post - hook keys convert it from the yucky maybe - a - string maybe - a - dict to a dict .
def _mangle_hooks(self, config):
        """Given a config dict that may have `pre-hook`/`post-hook` keys,
        convert it from the yucky maybe-a-string, maybe-a-dict to a dict.
        """
        # Like most of parsing, this is a horrible hack :(
        for key in hooks.ModelHookType:
            if key in config:
                config[key] = [hooks.get_hook_dict(h) for h in config[key]]
def _mangle_hooks ( self , config ) : # Like most of parsing, this is a horrible hack :( for key in hooks . ModelHookType : if key in config : config [ key ] = [ hooks . get_hook_dict ( h ) for h in config [ key ] ]