(tblname, hstr, dest_table=None)
return klass(tblname, args, dest_table)
Parse and initialize handler.

    hstr is result of create_handler_string().
Parse and initialize handler.
Parse and initialize handler .
def build_handler(tblname, hstr, dest_table=None):
    """Parse and initialize handler.

    hstr is result of create_handler_string()."""
    hname, args = _parse_handler(hstr)
    # when no handler specified, use londiste
    hname = hname or 'londiste'
    klass = _handler_map[hname]
    if not dest_table:
        dest_table = tblname
    return klass(tblname, args, dest_table)
def build_handler ( tblname , hstr , dest_table = None ) : hname , args = _parse_handler ( hstr ) # when no handler specified, use londiste hname = hname or 'londiste' klass = _handler_map [ hname ] if not dest_table : dest_table = tblname return klass ( tblname , args , dest_table )