Revision: 0485e8d222
Author: Mark Pilgrim <m
...@diveintomark.org>
Date: Wed Sep 30 10:19:42 2009
Log: EncodingBytes.__new__ needs to call bytes.__new__, not str.__new__
http://code.google.com/p/html5lib/source/detail?r=0485e8d222 Modified:
/python3/src/html5lib/inputstream.py
=======================================
--- /python3/src/html5lib/inputstream.py Sat May 30 14:07:14 2009
+++ /python3/src/html5lib/inputstream.py Wed Sep 30 10:19:42 2009
@@ -455,7 +455,7 @@
If the position is ever greater than the string length then an
exception is
raised"""
def __new__(self, value):
- return str.__new__(self, value)
+ return bytes.__new__(self, value)
def __init__(self, value):
self._position = -1