Skip to content

Commit c22d069

Browse files
committed
Avoid needless setter write, mutate value directly
1 parent 2ae13cc commit c22d069

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
if rv:
663-
self.position += len(bytes)
663+
self._position += len(bytes)
664664
return rv
665665

666666
def jumpTo(self, bytes):

0 commit comments

Comments
 (0)