We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ac258a commit 8dc5873Copy full SHA for 8dc5873
1 file changed
src/html5lib/inputstream.py
@@ -444,8 +444,10 @@ class EncodingBytes(str):
444
"""String-like object with an assosiated position and various extra methods
445
If the position is ever greater than the string length then an exception is
446
raised"""
447
+ def __new__(self, value):
448
+ return str.__new__(self, value)
449
+
450
def __init__(self, value):
- str.__init__(self, value)
451
self._position=-1
452
453
def __iter__(self):
0 commit comments