def run(port=5000):
    host = '127.0.0.1'
    try:
        from werkzeug.serving import run_simple
    except __HOLE__:
        pass
    else:
        run_simple(host, port, app, use_reloader=True, use_debugger=True)
        return
    print('Could not import Werkzeug, running without the reloader '
          'or debugger.')
    from wsgiref.simple_server import make_server
    server = make_server(host, port, app)
    print('Listening on http://%s:%s/ ...' % (host, port))
    server.serve_forever()
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/navigator.py/run