]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Bug in locale.py and increase poll time for autoreloader
authorBret Taylor <btaylor@gmail.com>
Fri, 18 Sep 2009 00:46:46 +0000 (17:46 -0700)
committerBret Taylor <btaylor@gmail.com>
Fri, 18 Sep 2009 00:46:46 +0000 (17:46 -0700)
tornado/autoreload.py
tornado/locale.py

index 864eec667b423bd9a9615c7ac6172f88e4c6b805..e644023c4a264dfec6979566317795cab16210b5 100644 (file)
@@ -24,7 +24,7 @@ import os.path
 import sys
 
 
-def start(io_loop=None, check_time=200):
+def start(io_loop=None, check_time=500):
     """Restarts the process automatically when a module is modified.
 
     We run on the I/O loop, and restarting is a destructive operation,
index 404b2719c7b7bcf2403d2a469ec468e31caac0bf..4bdd8685b15294e48cac86c750ed12075f6b287b 100644 (file)
@@ -293,7 +293,7 @@ class Locale(object):
         if dow:
             return _("%(weekday)s, %(month_name)s %(day)s") % {
                 "month_name": self._months[local_date.month - 1],
-                "weekday": self.WEEKDAYS[local_date.weekday()],
+                "weekday": self._weekdays[local_date.weekday()],
                 "day": str(local_date.day),
             }
         else: