]> git.pld-linux.org Git - packages/python-bs4.git/blame - python-bs4-lxml.patch
rebuild with tests and docs
[packages/python-bs4.git] / python-bs4-lxml.patch
CommitLineData
3352eb1c
JB
1--- beautifulsoup4-4.6.0/bs4/element.py.orig 2017-05-07 14:15:39.000000000 +0200
2+++ beautifulsoup4-4.6.0/bs4/element.py 2021-01-23 20:55:10.229088076 +0100
3@@ -29,6 +29,11 @@
4 class NamespacedAttribute(unicode):
5
6 def __new__(cls, prefix, name, namespace=None):
7+ if not name:
8+ # This is the default namespace. Its name "has no value"
9+ # per https://www.w3.org/TR/xml-names/#defaulting
10+ name = None
11+
12 if name is None:
13 obj = unicode.__new__(cls, prefix)
14 elif prefix is None:
This page took 0.03677 seconds and 4 git commands to generate.