aboutsummaryrefslogtreecommitdiff
path: root/bleach/callbacks.py
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2015-12-06 13:31:51 +0000
committerChristopher Baines <mail@cbaines.net>2015-12-06 13:31:51 +0000
commit11b8160e584470439c8c0b3ab51012c9300f6788 (patch)
treedbc2728474f7c3f578e2afb8d0d74f55f2823114 /bleach/callbacks.py
parent6cff86ce6de27fbd4f9fc07716fb1205b14ffae4 (diff)
downloadpython-bleach-upstream.tar
python-bleach-upstream.tar.gz
Imported Upstream version 1.4.2upstream/1.4.2upstream
Diffstat (limited to 'bleach/callbacks.py')
-rw-r--r--bleach/callbacks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bleach/callbacks.py b/bleach/callbacks.py
index 227f089..3cb82c2 100644
--- a/bleach/callbacks.py
+++ b/bleach/callbacks.py
@@ -6,7 +6,7 @@ def nofollow(attrs, new=False):
if attrs['href'].startswith('mailto:'):
return attrs
rel = [x for x in attrs.get('rel', '').split(' ') if x]
- if not 'nofollow' in [x.lower() for x in rel]:
+ if 'nofollow' not in [x.lower() for x in rel]:
rel.append('nofollow')
attrs['rel'] = ' '.join(rel)