From: Ben Darnell Date: Mon, 6 Sep 2010 07:00:52 +0000 (-0700) Subject: Remove superfluous lambdas in tornado.escape. X-Git-Tag: v1.1.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e34c59edd9a72fdc4be9f16074aaa3f1c3ee9cf;p=thirdparty%2Ftornado.git Remove superfluous lambdas in tornado.escape. Closes #132. --- diff --git a/tornado/escape.py b/tornado/escape.py index 8852ca295..5d6d9ea78 100644 --- a/tornado/escape.py +++ b/tornado/escape.py @@ -26,8 +26,8 @@ import urllib try: import json assert hasattr(json, "loads") and hasattr(json, "dumps") - _json_decode = lambda s: json.loads(s) - _json_encode = lambda v: json.dumps(v) + _json_decode = json.loads + _json_encode = json.dumps except: try: import simplejson