From: Bret Taylor Date: Wed, 16 Sep 2009 08:49:58 +0000 (-0700) Subject: Rename auto-reload module X-Git-Tag: v1.0.0~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=237944d5241aedc2a281c7a17cbb08a3f18c5a2a;p=thirdparty%2Ftornado.git Rename auto-reload module --- diff --git a/tornado/reloader.py b/tornado/autoreload.py similarity index 96% rename from tornado/reloader.py rename to tornado/autoreload.py index d0a1389fc..864eec667 100644 --- a/tornado/reloader.py +++ b/tornado/autoreload.py @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. +"""A module to automatically restart the server when a module is modified.""" + import functools import ioloop import logging diff --git a/tornado/web.py b/tornado/web.py index 2e23e748d..a625e7838 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -879,8 +879,8 @@ class Application(object): # Automatically reload modified modules if self.settings.get("auto_reload"): - import reloader - reloader.start() + import autoreload + autoreload.start() def add_handlers(self, host_pattern, host_handlers): """Appends the given handlers to our handler list."""