diff options
author | Christopher Baines <mail@cbaines.net> | 2015-12-06 13:31:51 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2015-12-06 13:31:51 +0000 |
commit | 11b8160e584470439c8c0b3ab51012c9300f6788 (patch) | |
tree | dbc2728474f7c3f578e2afb8d0d74f55f2823114 /bleach/callbacks.py | |
parent | 6cff86ce6de27fbd4f9fc07716fb1205b14ffae4 (diff) | |
download | python-bleach-11b8160e584470439c8c0b3ab51012c9300f6788.tar python-bleach-11b8160e584470439c8c0b3ab51012c9300f6788.tar.gz |
Imported Upstream version 1.4.2upstream/1.4.2upstream
Diffstat (limited to 'bleach/callbacks.py')
-rw-r--r-- | bleach/callbacks.py | 2 |
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) |