mirror of
https://github.com/wassname/flask-security.git
synced 2026-10-29 13:10:12 +08:00
split docstring into multiple lines to make travis CI happy
This commit is contained in:
1 parent
4d70f016ad
commit
665b164618
1 file changed
+3
-1
@@ -189,7 +189,9 @@ def get_url(endpoint_or_url):
|
||||
|
||||
|
||||
def slash_url_suffix(url, suffix):
|
||||
"""Adds a slash either to the beginning or the end of a suffix (which is to be appended to a URL), depending on whether or not the URL ends with a slash."""
|
||||
"""Adds a slash either to the beginning or the end of a suffix
|
||||
(which is to be appended to a URL), depending on whether or not
|
||||
the URL ends with a slash."""
|
||||
|
||||
return url.endswith('/') and ('%s/' % suffix) or ('/%s' % suffix)
|
||||
|
||||
|
||||
Reference in new issue
Block a user