Skip to content

Commit ff4f2b8

Browse files
committed
Move docstring so 3to2 produces valid Py2.
1 parent 139836d commit ff4f2b8

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

html5lib/treebuilders/etree_lxml.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
"""Module for supporting the lxml.etree library. The idea here is to use as much
2+
of the native library as possible, without using fragile hacks like custom element
3+
names that break between releases. The downside of this is that we cannot represent
4+
all possible trees; specifically the following are known to cause problems:
5+
6+
Text or comments as siblings of the root element
7+
Docypes with no name
8+
9+
When any of these things occur, we emit a DataLossWarning
10+
"""
11+
112
import warnings
213
import re
314

@@ -15,16 +26,6 @@
1526
fullTree = True
1627
tag_regexp = re.compile("{([^}]*)}(.*)")
1728

18-
"""Module for supporting the lxml.etree library. The idea here is to use as much
19-
of the native library as possible, without using fragile hacks like custom element
20-
names that break between releases. The downside of this is that we cannot represent
21-
all possible trees; specifically the following are known to cause problems:
22-
23-
Text or comments as siblings of the root element
24-
Docypes with no name
25-
26-
When any of these things occur, we emit a DataLossWarning
27-
"""
2829

2930
class DocumentType(object):
3031
def __init__(self, name, publicId, systemId):

0 commit comments

Comments
 (0)