From: Szabó Antal Date: Sun, 12 Sep 2010 21:34:38 +0000 (+0200) Subject: Replaced map() in web.py with for loop X-Git-Tag: v1.2.0~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1b5c33b40ffe87649eeb9aa126e622097479119;p=thirdparty%2Ftornado.git Replaced map() in web.py with for loop --- diff --git a/tornado/web.py b/tornado/web.py index ee9cbd32d..b21f0be29 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -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)