def serve(ip, port, application, ssl=None, processes=1, **kwargs):

    try:
        # use werkzeug if its there
        from werkzeug.serving import run_simple
        print("Using Werkzeug run_simple")
        run_simple(ip, port, application, ssl_context=ssl, processes=processes, **kwargs)
        return
    except ImportError:
        pass

    # otherwise just use python's built in wsgi webserver
    from wsgiref.simple_server import make_server
    server = make_server(ip, port, application)
    print("Serving on %s:%s, using built in Python server" % (ip, port))
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass
Format multiple command matches to a useful error.
dataset/ETHPy150Open priestc/giotto/giotto/controllers/http.py/serve--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/commands/default/syscommands.py/SystemMultimatch.format_multimatches