Merge branch 'tao12345666333-hotfix-doc-web-current-user'

* tao12345666333-hotfix-doc-web-current-user:
  fix tornado/web.py #L1075 current_user docstring example
This commit is contained in:
A. Jesse Jiryu Davis 2016-03-03 21:13:06 -05:00
commit 3ca114224a
1 changed files with 2 additions and 2 deletions

View File

@ -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