Skip to content

Commit 01cc4a8

Browse files
committed
fixup! Get rid of getPhases.
1 parent fce66d5 commit 01cc4a8

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

html5lib/html5parser.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from __future__ import absolute_import, division, unicode_literals
22
from six import viewkeys, PY3
33

4-
import types
5-
64
try:
75
from collections import OrderedDict
86
except ImportError:
@@ -41,18 +39,6 @@ def parseFragment(doc, container="div", treebuilder="etree", namespaceHTMLElemen
4139
return p.parseFragment(doc, container=container, **kwargs)
4240

4341

44-
def method_decorator_metaclass(function):
45-
class Decorated(type):
46-
def __new__(meta, classname, bases, classDict):
47-
for attributeName, attribute in classDict.items():
48-
if isinstance(attribute, types.FunctionType):
49-
attribute = function(attribute)
50-
51-
classDict[attributeName] = attribute
52-
return type.__new__(meta, classname, bases, classDict)
53-
return Decorated
54-
55-
5642
class HTMLParser(object):
5743
"""HTML parser. Generates a tree structure from a stream of (possibly
5844
malformed) HTML"""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy