Skip to content

Commit 6047341

Browse files
committed
Nitpick: use empty-string literal instead of call to str()
1 parent 0c6ff3f commit 6047341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htmlement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def _handle_starttag(self, tag, attrs, self_closing=False):
330330
# Add tag element to tree if we have no filter or that the filter matches
331331
if enabled or self._search(tag, attrs):
332332
# Convert attrs to dictionary
333-
attrs = {k: v or str() for k, v in attrs}
333+
attrs = {k: v or "" for k, v in attrs}
334334
self._flush()
335335

336336
# Create the new element

0 commit comments

Comments
 (0)