fix: add docstring
This commit is contained in:
parent
b214a993da
commit
e288b781bf
1 changed files with 7 additions and 0 deletions
|
|
@ -327,6 +327,13 @@ def serve(port=8000, profile=False, no_reload=False, no_threading=False, site=No
|
|||
threaded=not no_threading)
|
||||
|
||||
def patch_werkzeug_reloader():
|
||||
"""
|
||||
This function monkey patches Werkzeug reloader to ignore reloading files in
|
||||
the __pycache__ directory.
|
||||
|
||||
To be deprecated when upgrading to Werkzeug 2.
|
||||
"""
|
||||
|
||||
from werkzeug._reloader import WatchdogReloaderLoop
|
||||
|
||||
trigger_reload = WatchdogReloaderLoop.trigger_reload
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue