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

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy