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

Commitbfe955c

Browse files
committed
fixup! Generate tokenizer tests from testdata files
1 parent8e1bef2 commitbfe955c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎html5lib/tests/tokenizer.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__importabsolute_import,division,unicode_literals
22

3+
importcodecs
34
importjson
45
importwarnings
56
importre
@@ -185,7 +186,7 @@ def capitalize(s):
185186

186187
classTokenizerFile(pytest.File):
187188
defcollect(self):
188-
withopen(str(self.fspath),"rb")asfp:
189+
withcodecs.open(str(self.fspath),"r",encoding="utf-8")asfp:
189190
tests=json.load(fp)
190191
if'tests'intests:
191192
fori,testinenumerate(tests['tests']):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp