]> git.pld-linux.org Git - packages/python-bs4.git/blob - python-bs4-lxml.patch
4a2ce434921bec693d0c18be2e3215b5f03af606
[packages/python-bs4.git] / python-bs4-lxml.patch
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.053824 seconds and 2 git commands to generate.