summaryrefslogtreecommitdiff
path: root/bs4/builder/_html5lib.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2019-11-11 10:43:28 -0500
committerLeonard Richardson <leonardr@segfault.org>2019-11-11 10:43:28 -0500
commitce4a5001dcd4e85e95da61969a892d1b3fcd9c3b (patch)
tree2380b3742198296dfc8a66e57335520d0cec7465 /bs4/builder/_html5lib.py
parent8c57caece563f2c9aea0a6cc86bd5cee3c40877f (diff)
Added a Brazilian Portuguese translation by Cezar Peixeiro.
Diffstat (limited to 'bs4/builder/_html5lib.py')
-rw-r--r--bs4/builder/_html5lib.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/bs4/builder/_html5lib.py b/bs4/builder/_html5lib.py
index 13f697c..32a0856 100644
--- a/bs4/builder/_html5lib.py
+++ b/bs4/builder/_html5lib.py
@@ -316,9 +316,7 @@ class Element(treebuilder_base.Node):
return AttrList(self.element)
def setAttributes(self, attributes):
-
if attributes is not None and len(attributes) > 0:
-
converted_attributes = []
for name, value in list(attributes.items()):
if isinstance(name, tuple):