diff options
Diffstat (limited to 'bitbake/lib/bs4')
| -rw-r--r-- | bitbake/lib/bs4/__init__.py | 2 | ||||
| -rw-r--r-- | bitbake/lib/bs4/builder/_html5lib.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bs4/__init__.py b/bitbake/lib/bs4/__init__.py index f6fdfd50b1..e35725b86e 100644 --- a/bitbake/lib/bs4/__init__.py +++ b/bitbake/lib/bs4/__init__.py | |||
| @@ -427,7 +427,7 @@ class BeautifulSoup(Tag): | |||
| 427 | if self.is_xml: | 427 | if self.is_xml: |
| 428 | # Print the XML declaration | 428 | # Print the XML declaration |
| 429 | encoding_part = '' | 429 | encoding_part = '' |
| 430 | if eventual_encoding != None: | 430 | if eventual_encoding is not None: |
| 431 | encoding_part = ' encoding="%s"' % eventual_encoding | 431 | encoding_part = ' encoding="%s"' % eventual_encoding |
| 432 | prefix = '<?xml version="1.0"%s?>\n' % encoding_part | 432 | prefix = '<?xml version="1.0"%s?>\n' % encoding_part |
| 433 | else: | 433 | else: |
diff --git a/bitbake/lib/bs4/builder/_html5lib.py b/bitbake/lib/bs4/builder/_html5lib.py index 4091ce88b9..9e9216ef9c 100644 --- a/bitbake/lib/bs4/builder/_html5lib.py +++ b/bitbake/lib/bs4/builder/_html5lib.py | |||
| @@ -321,7 +321,7 @@ class Element(treebuildersbase.Node): | |||
| 321 | return self.element.contents | 321 | return self.element.contents |
| 322 | 322 | ||
| 323 | def getNameTuple(self): | 323 | def getNameTuple(self): |
| 324 | if self.namespace == None: | 324 | if self.namespace is None: |
| 325 | return namespaces["html"], self.name | 325 | return namespaces["html"], self.name |
| 326 | else: | 326 | else: |
| 327 | return self.namespace, self.name | 327 | return self.namespace, self.name |
