diff options
Diffstat (limited to 'Lib/encodings/utf_16.py')
-rw-r--r-- | Lib/encodings/utf_16.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/encodings/utf_16.py b/Lib/encodings/utf_16.py index 72be072..2c2638f 100644 --- a/Lib/encodings/utf_16.py +++ b/Lib/encodings/utf_16.py @@ -53,6 +53,9 @@ class StreamReader(Codec,codecs.StreamReader): 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(): |