Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit c6c01e4

Browse files
committed
travis is picky
1 parent 303f968 commit c6c01e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def smart_str(s, encoding='utf8'):
3939
return s.encode(encoding)
4040

4141
def sanitize_html(value):
42-
""" Recursively sanitize all strings within a data structure. """
42+
""" Recursively sanitize all strings within a data structure. """
4343
if isinstance(value, dict):
4444
value = {k:sanitize_html(v) for k, v in value.iteritems()}
4545
elif isinstance(value, list):
4646
value = [sanitize_html(v) for v in value]
4747
elif isinstance(value, basestring):
4848
value = bleach.clean(value, tags=ALLOWED_TAGS, attributes=ALLOWED_ATTRIBUTES, styles=ALLOWED_STYLES)
49-
return value
49+
return value

0 commit comments

Comments
 (0)