mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
Fix multi-paragraph docstrings.
This commit is contained in:
@@ -2508,7 +2508,7 @@ class ApihelpController(RedditController):
|
||||
continue
|
||||
|
||||
if func.__doc__ and method in ('GET', 'POST'):
|
||||
docs = func.__doc__.strip()
|
||||
docs = re.sub(r'\n +', '\n', func.__doc__).strip()
|
||||
if hasattr(func, 'oauth2_perms'):
|
||||
scopes = func.oauth2_perms.get('allowed_scopes')
|
||||
if scopes:
|
||||
|
||||
Reference in New Issue
Block a user