From: TaoBeier Date: Thu, 3 Mar 2016 14:39:36 +0000 (+0800) Subject: fix tornado/web.py #L1075 current_user docstring example X-Git-Tag: v4.4.0b1~44^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48c7174904d876973e0e55673e10f640c7d487a3;p=thirdparty%2Ftornado.git fix tornado/web.py #L1075 current_user docstring example The example has unexpected indent. --- diff --git a/tornado/web.py b/tornado/web.py index 8826c62b0..12939337e 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -1072,8 +1072,8 @@ class RequestHandler(object): def get_current_user(self): user_cookie = self.get_secure_cookie("user") - if user_cookie: - return json.loads(user_cookie) + if user_cookie: + return json.loads(user_cookie) return None * It may be set as a normal variable, typically from an overridden