Skip to content

Commit 4a788c3

Browse files
author
Matt Gilson
committed
fixup for flake8
1 parent 38ae9fb commit 4a788c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

html5lib/sanitizer.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ def sanitize_token(self, token):
214214
def allowed_token(self, token, token_type):
215215
if "data" in token:
216216
attrs = dict((name, val) for name, val in
217-
token["data"][::-1]
218-
if name in self.allowed_attributes)
217+
token["data"][::-1] if name in self.allowed_attributes)
219218
for attr in self.attr_val_is_uri:
220219
if attr not in attrs:
221220
continue

0 commit comments

Comments
 (0)