mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
apiv1.py: Fix whitespace issues
This commit is contained in:
@@ -26,15 +26,15 @@ from r2.controllers.oauth2 import OAuth2ResourceController, require_oauth2_scope
|
||||
from r2.lib.jsontemplates import IdentityJsonTemplate
|
||||
|
||||
class APIv1Controller(OAuth2ResourceController):
|
||||
def pre(self):
|
||||
self.check_for_bearer_token()
|
||||
def pre(self):
|
||||
self.check_for_bearer_token()
|
||||
|
||||
def try_pagecache(self):
|
||||
pass
|
||||
def try_pagecache(self):
|
||||
pass
|
||||
|
||||
@require_oauth2_scope("identity")
|
||||
@api_doc(api_section.account)
|
||||
def GET_me(self):
|
||||
"""Returns the identity of the user currently authenticated via OAuth."""
|
||||
resp = IdentityJsonTemplate().data(c.oauth_user)
|
||||
return self.api_wrapper(resp)
|
||||
@require_oauth2_scope("identity")
|
||||
@api_doc(api_section.account)
|
||||
def GET_me(self):
|
||||
"""Returns the identity of the user currently authenticated via OAuth."""
|
||||
resp = IdentityJsonTemplate().data(c.oauth_user)
|
||||
return self.api_wrapper(resp)
|
||||
|
||||
Reference in New Issue
Block a user