Skip to content

Commit a120557

Browse files
committed
fixup! Get rid of getPhases.
1 parent 920c71f commit a120557

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

html5lib/html5parser.py

-14
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)