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

Commitd595d0a

Browse files
authored
Merge pull request#373 from willkg/371-reparse-private
Make ReparseException private
2 parentsb105f6e +876ff02 commitd595d0a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎html5lib/_inputstream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
importwebencodings
1010

1111
from .constantsimportEOF,spaceCharacters,asciiLetters,asciiUppercase
12-
from .constantsimportReparseException
12+
from .constantsimport_ReparseException
1313
from .import_utils
1414

1515
fromioimportStringIO
@@ -530,7 +530,7 @@ def changeEncoding(self, newEncoding):
530530
self.rawStream.seek(0)
531531
self.charEncoding= (newEncoding,"certain")
532532
self.reset()
533-
raiseReparseException("Encoding changed from %s to %s"% (self.charEncoding[0],newEncoding))
533+
raise_ReparseException("Encoding changed from %s to %s"% (self.charEncoding[0],newEncoding))
534534

535535
defdetectBOM(self):
536536
"""Attempts to detect at BOM at the start of the stream. If

‎html5lib/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2943,5 +2943,5 @@ class DataLossWarning(UserWarning):
29432943
pass
29442944

29452945

2946-
classReparseException(Exception):
2946+
class_ReparseException(Exception):
29472947
pass

‎html5lib/html5parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
adjustForeignAttributesasadjustForeignAttributesMap,
2121
adjustMathMLAttributes,adjustSVGAttributes,
2222
E,
23-
ReparseException
23+
_ReparseException
2424
)
2525

2626

@@ -83,7 +83,7 @@ def _parse(self, stream, innerHTML=False, container="div", scripting=False, **kw
8383

8484
try:
8585
self.mainLoop()
86-
exceptReparseException:
86+
except_ReparseException:
8787
self.reset()
8888
self.mainLoop()
8989

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp