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

Commitc22d069

Browse files
committed
Avoid needless setter write, mutate value directly
1 parent2ae13cc commitc22d069

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
@@ -660,7 +660,7 @@ def matchBytes(self, bytes):
660660
match. Otherwise return False and leave the position alone"""
661661
rv=self.startswith(bytes,self.position)
662662
ifrv:
663-
self.position+=len(bytes)
663+
self._position+=len(bytes)
664664
returnrv
665665

666666
defjumpTo(self,bytes):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp