From ce4a5001dcd4e85e95da61969a892d1b3fcd9c3b Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Mon, 11 Nov 2019 10:43:28 -0500 Subject: Added a Brazilian Portuguese translation by Cezar Peixeiro. --- bs4/builder/_html5lib.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'bs4/builder/_html5lib.py') 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): -- cgit v1.2.3