(config)
return s
Set up the service.
Set up the service.
Set up the service .
def makeService(config):
    """
    Set up the service.
    """
    s = MultiService()
    if config['realtime']:
        from twisted.internet import reactor as clock
    else:
        clock = Clock()
    core = MimicCore.fromPlugins(clock)
    root = MimicRoot(core, clock)
    site = get_site(root.app.resource(), logging=bool(config['verbose']))

    # The Twisted code currently (v16.6.0, 17.1.0) compares the type of
    # this argument to 'str' in order to determine how to handle it.
    description = str(config['listen'])
    service(description, site).setServiceParent(s)

    return s
def makeService ( config ) : s = MultiService ( ) if config [ 'realtime' ] : from twisted . internet import reactor as clock else : clock = Clock ( ) core = MimicCore . fromPlugins ( clock ) root = MimicRoot ( core , clock ) site = get_site ( root . app . resource ( ) , logging = bool ( config [ 'verbose' ] ) ) # The Twisted code currently (v16.6.0, 17.1.0) compares the type of # this argument to 'str' in order to determine how to handle it. description = str ( config [ 'listen' ] ) service ( description , site ) . setServiceParent ( s ) return s