They now raise an NotImplementedError to hint to the truth ;-)
self.bom_read = 1
return codecs.StreamReader.read(self, size)
+ def readline(self, size=None):
+ raise NotImplementedError, '.readline() is not implemented for UTF-16'
+
### encodings module API
def getregentry():
pass
class StreamReader(Codec,codecs.StreamReader):
- pass
+
+ def readline(self, size=None):
+ raise NotImplementedError, '.readline() is not implemented for UTF-16-BE'
### encodings module API
pass
class StreamReader(Codec,codecs.StreamReader):
- pass
+
+ def readline(self, size=None):
+ raise NotImplementedError, '.readline() is not implemented for UTF-16-LE'
### encodings module API