Skip to content

Commit

Permalink
Silence deprecation warning from Werkzeug 2.x (Fixes #1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed May 13, 2021
1 parent 2f1c322 commit 6563634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_socketio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import socketio
from socketio.exceptions import ConnectionRefusedError # noqa: F401
from werkzeug.debug import DebuggedApplication
from werkzeug.serving import run_with_reloader
from werkzeug._reloader import run_with_reloader

from .namespace import Namespace
from .test_client import SocketIOTestClient
Expand Down

2 comments on commit 6563634

@diurnalist
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this instead utilize run_simple with use_reloader=True?

@miguelgrinberg
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run_simple starts the Werkzeug server, it cannot be used with eventlet or gevent.

Please sign in to comment.