Skip to content

Commit

Permalink
fixup for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gilson committed Aug 9, 2015
1 parent 38ae9fb commit 4a788c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions html5lib/sanitizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ def sanitize_token(self, token):
def allowed_token(self, token, token_type):
if "data" in token:
attrs = dict((name, val) for name, val in
token["data"][::-1]
if name in self.allowed_attributes)
token["data"][::-1] if name in self.allowed_attributes)
for attr in self.attr_val_is_uri:
if attr not in attrs:
continue
Expand Down

0 comments on commit 4a788c3

Please sign in to comment.