Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff4f2b8

Browse files
committed
Move docstring so 3to2 produces valid Py2.
1 parent139836d commitff4f2b8

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
importwarnings
213
importre
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
classDocumentType(object):
3031
def__init__(self,name,publicId,systemId):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp