Skip to content

Commit

Permalink
split docstring into multiple lines to make travis CI happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaza committed Nov 28, 2014
1 parent 4d70f01 commit 665b164
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flask_security/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 665b164

Please sign in to comment.