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

Commitc09a92b

Browse files
committed
Fix seeking to the end of the buffered data in BufferedStream.
Previously, you could only seek to the final character, and not thecurrent end of the buffered data.
1 parent6d7e66c commitc09a92b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎html5lib/inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def tell(self):
6363
returnpos
6464

6565
defseek(self,pos):
66-
assertpos<self._bufferedBytes()
66+
assertpos<=self._bufferedBytes()
6767
offset=pos
6868
i=0
6969
whilelen(self.buffer[i])<offset:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp