]> git.ipfire.org Git - thirdparty/tornado.git/commit
autoreload: Support the ability to run a directory instead of a module
authorBen Darnell <ben@bendarnell.com>
Fri, 14 Jul 2023 00:57:11 +0000 (20:57 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 23 Jul 2023 00:53:05 +0000 (20:53 -0400)
commitd7621eebba60199f21ae8398de1b57273149b04b
tree149daa19544bc36707331fc3f0098e1532c854d3
parent559f94aa8809fa37cb2015fadc06d8e46430fafe
autoreload: Support the ability to run a directory instead of a module

Running a directory has some but not all of the behavior of
running a module, including setting __spec__, so we must be careful
not to break things by assuming that __spec__ means module mode.

Fixes #2855
tornado/autoreload.py
tornado/test/autoreload_test.py