]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Replaced map() in web.py with for loop
authorSzabó Antal <szabot@szabot-desktop.(none)>
Sun, 12 Sep 2010 21:34:38 +0000 (23:34 +0200)
committerBen Darnell <ben@bendarnell.com>
Tue, 14 Sep 2010 20:04:42 +0000 (13:04 -0700)
tornado/web.py

index ee9cbd32d4684edd5a6cfe313f600297b3e40595..b21f0be296272e662a097a90862c1ee14f26d753 100644 (file)
@@ -1144,8 +1144,8 @@ class Application(object):
         # request so you don't need to restart to see changes
         if self.settings.get("debug"):
             if getattr(RequestHandler, "_templates", None):
-                map(lambda loader: loader.reset(),
-                    RequestHandler._templates.values())
+                for loader in RequestHandler._templates.values():
+                    loader.reset()
             RequestHandler._static_hashes = {}
 
         handler._execute(transforms, *args, **kwargs)