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

Commit0a9de87

Browse files
author
Mark Pilgrim
committed
EncodingBytes.__new__ needs to call bytes.__new__, not str.__new__
1 parent55caa34 commit0a9de87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/html5lib/inputstream.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ class EncodingBytes(bytes):
455455
If the position is ever greater than the string length then an exception is
456456
raised"""
457457
def__new__(self,value):
458-
returnstr.__new__(self,value)
458+
returnbytes.__new__(self,value)
459459

460460
def__init__(self,value):
461461
self._position=-1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp