aboutsummaryrefslogtreecommitdiff
path: root/bleach/callbacks.py
diff options
context:
space:
mode:
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)